Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
func NewMatcher ¶
func NewMatcher(name string, setters ...MatcherOption) Matcher
type MatcherError ¶
type MatcherError struct {
Message string
}
MatcherError custom error for Matcher
func (*MatcherError) Error ¶
func (e *MatcherError) Error() string
type MatcherOption ¶
type MatcherOption func(*Matcher)
func Description ¶
func Description(description string) MatcherOption
func Disabled ¶
func Disabled(disabled bool) MatcherOption
func ID ¶
func ID(id string) MatcherOption
func Name ¶
func Name(name string) MatcherOption
type MatcherRepository ¶
type MatcherRepository struct { Matchers map[string]IMatcher // contains filtered or unexported fields }
func GetMatcherRepository ¶
func GetMatcherRepository() *MatcherRepository
func NewMatcherRepository ¶
func NewMatcherRepository() MatcherRepository
func (*MatcherRepository) GetMatcher ¶
func (apr *MatcherRepository) GetMatcher(name string) (IMatcher, error)
func (*MatcherRepository) HasMatcher ¶
func (apr *MatcherRepository) HasMatcher(name string) bool
func (*MatcherRepository) LoadMatchers ¶
func (apr *MatcherRepository) LoadMatchers(path string) error
func (*MatcherRepository) RegisterMatcher ¶
func (apr *MatcherRepository) RegisterMatcher(matcher IMatcher) error
Click to show internal directories.
Click to hide internal directories.