matcher

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatcherParser added in v0.4.0

type MatcherParser[T any] func(v *model.Validator, r *MatcherParserRegistry[T], x any) model.Matcher[T]

type MatcherParserRegistry added in v0.4.0

type MatcherParserRegistry[T any] struct {
	// contains filtered or unexported fields
}

func NewMatcherParserRegistry added in v0.4.0

func NewMatcherParserRegistry[T any](target string) *MatcherParserRegistry[T]

func (*MatcherParserRegistry[T]) Add added in v0.4.0

func (r *MatcherParserRegistry[T]) Add(name string, p MatcherParser[T]) error

func (*MatcherParserRegistry[T]) AddWithDefault added in v0.4.0

func (r *MatcherParserRegistry[T]) AddWithDefault(name string, p MatcherParser[T], defaultParam any) error

func (*MatcherParserRegistry[T]) ParseMatcher added in v0.4.0

func (r *MatcherParserRegistry[T]) ParseMatcher(v *model.Validator, x any) model.Matcher[T]

func (*MatcherParserRegistry[T]) ParseMatchers added in v0.4.0

func (r *MatcherParserRegistry[T]) ParseMatchers(v *model.Validator, x any) []model.Matcher[T]

type StatusMatcherParser

type StatusMatcherParser = MatcherParser[int]

type StatusMatcherRegistry

type StatusMatcherRegistry = MatcherParserRegistry[int]

func NewStatusMatcherRegistry

func NewStatusMatcherRegistry() *StatusMatcherRegistry

type StreamMatcherParser

type StreamMatcherParser = MatcherParser[[]byte]

type StreamMatcherRegistry

type StreamMatcherRegistry = MatcherParserRegistry[[]byte]

func NewStreamMatcherRegistry

func NewStreamMatcherRegistry() *StreamMatcherRegistry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL