api/rule_set_group.go
func (a *API) FetchRuleSetGroups() (*[]RuleSetGroup, error) {
	result, err := a.Get(config.RuleSetGroupPrefix)
	if err != nil {
		return nil, err
	}

	var rulesetGroups []RuleSetGroup
	if err := json.Unmarshal(result, &rulesetGroups); err != nil {
		return nil, err
	}

	return &rulesetGroups, nil
}
func (a *API) FetchRuleSetGroups() (*[]RuleSetGroup, error) {
	result, err := a.Get(config.RuleSetGroupPrefix)
	if err != nil {
		return nil, err
	}

	var rulesetGroups []RuleSetGroup
	if err := json.Unmarshal(result, &rulesetGroups); err != nil {
		return nil, err
	}

	return &rulesetGroups, nil
}
func ( a * API ) FetchRuleSetGroups ( ) ( * [ ] RuleSetGroup , error ) { result , err := a . Get ( config . RuleSetGroupPrefix ) if err != nil { return nil , err } var rulesetGroups [ ] RuleSetGroup if err := json . Unmarshal ( result , & rulesetGroups ) ; err != nil { return nil , err } return & rulesetGroups , nil }
// FetchRuleSetGroups retrieves all rule set groups available to API Token.
FetchRuleSetGroups retrieves all rule set groups available to API Token .