Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claim ¶
type Claim struct { Host string `yaml:"host"` Path string `yaml:"path"` Method string `yaml:"method"` Headers Headers `yaml:"headers"` }
Claim is claim structure for rules
func (*Claim) ContainsByHeaders ¶
ContainsByHeaders verify if contains A in B as (map[string]string)
type ErrCannotReadRulesFile ¶
type ErrCannotReadRulesFile struct {
Reason error
}
ErrCannotReadRulesFile to report error when cannot read a rules config file
func (*ErrCannotReadRulesFile) Error ¶
func (e *ErrCannotReadRulesFile) Error() string
type ErrInvalidRulesFile ¶
type ErrInvalidRulesFile struct {
Reason error
}
ErrInvalidRulesFile to report error when the rules config file is invalid
func (*ErrInvalidRulesFile) Error ¶
func (e *ErrInvalidRulesFile) Error() string
type ErrRuleNotFound ¶
type ErrRuleNotFound struct {
// contains filtered or unexported fields
}
ErrRuleNotFound is an structure to response not found error
func (*ErrRuleNotFound) Error ¶
func (e *ErrRuleNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.