Versions in this module Expand all Collapse all v1 v1.0.0 Dec 28, 2024 Changes in this version + func GetMatcherFactories() map[string]func() ConditionMatcherFactory + func GetSampleValueFromURL(conditionKey string, sample map[string]string, param *common.URL, ...) string + func Match(condition Matcher, sample map[string]string, param *common.URL, ...) bool + func SetMatcherFactory(name string, fun func() ConditionMatcherFactory) + type ArgumentConditionMatcher struct + func NewArgumentConditionMatcher(key string) *ArgumentConditionMatcher + func (a *ArgumentConditionMatcher) GetValue(sample map[string]string, url *common.URL, invocation protocol.Invocation) string + type ArgumentMatcherFactory struct + func (a *ArgumentMatcherFactory) NewMatcher(key string) Matcher + func (a *ArgumentMatcherFactory) Priority() int64 + func (a *ArgumentMatcherFactory) ShouldMatch(key string) bool + type AttachmentConditionMatcher struct + func NewAttachmentConditionMatcher(key string) *AttachmentConditionMatcher + func (a *AttachmentConditionMatcher) GetValue(sample map[string]string, url *common.URL, invocation protocol.Invocation) string + type AttachmentMatcherFactory struct + func (a *AttachmentMatcherFactory) NewMatcher(key string) Matcher + func (a *AttachmentMatcherFactory) Priority() int64 + func (a *AttachmentMatcherFactory) ShouldMatch(key string) bool + type BaseConditionMatcher struct + func NewBaseConditionMatcher(key string) *BaseConditionMatcher + func (b *BaseConditionMatcher) GetMatches() map[string]struct{} + func (b *BaseConditionMatcher) GetMismatches() map[string]struct{} + func (b *BaseConditionMatcher) GetValue(sample map[string]string, url *common.URL, invocation protocol.Invocation) string + func (b *BaseConditionMatcher) IsMatch(value string, param *common.URL, invocation protocol.Invocation, ...) bool + type ConditionMatcherFactory interface + NewMatcher func(key string) Matcher + Priority func() int64 + ShouldMatch func(key string) bool + func GetMatcherFactory(name string) ConditionMatcherFactory + func NewArgumentMatcherFactory() ConditionMatcherFactory + func NewAttachmentMatcherFactory() ConditionMatcherFactory + func NewParamMatcherFactory() ConditionMatcherFactory + type Matcher interface + GetMatches func() map[string]struct{} + GetMismatches func() map[string]struct{} + GetValue func(sample map[string]string, url *common.URL, invocation protocol.Invocation) string + IsMatch func(value string, param *common.URL, invocation protocol.Invocation, ...) bool + type ParamConditionMatcher struct + func NewParamConditionMatcher(key string) *ParamConditionMatcher + func (p *ParamConditionMatcher) GetValue(sample map[string]string, url *common.URL, invocation protocol.Invocation) string + type ParamMatcherFactory struct + func (p *ParamMatcherFactory) NewMatcher(key string) Matcher + func (p *ParamMatcherFactory) Priority() int64 + func (p *ParamMatcherFactory) ShouldMatch(key string) bool