Documentation ¶
Index ¶
- Variables
- func FromAction(action Action) string
- type Action
- type Client
- func (client *Client) Add(opts Options) (ID, error)
- func (client *Client) Delete(id ID) error
- func (client *Client) Get(id ID) (Rule, error)
- func (client *Client) GetAll() ([]Rule, error)
- func (client *Client) GetAllJSON() (string, error)
- func (client *Client) GetJSON(id ID) (string, error)
- func (client *Client) Set(id ID, opts Options) error
- type ID
- type Options
- type Rule
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WildcardString = "ANY" NullRule = Rule{} NullRuleString = "" NullID = 0 NullAction = "" ErrorIdAlreadyExists = errors.New("ID already exists") ErrorIdNotFound = errors.New("ID not found") ErrorNotAbleToGenerateId = errors.New("Not able to generate ID") ErrorNotAbleToParseId = errors.New("Not able to parse ID") ErrorUnableToMarshalJSON = errors.New("Unable to marshal JSON") ErrorRuleNotValid = errors.New("Rule not valid") )
Functions ¶
func FromAction ¶
Types ¶
type Client ¶
func (*Client) GetAllJSON ¶
Click to show internal directories.
Click to hide internal directories.