Documentation ¶
Overview ¶
Package matcher provides custom matchers for gRPC requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FnMatcher ¶
type FnMatcher struct {
// contains filtered or unexported fields
}
FnMatcher is a matcher that call itself.
type HeaderMatcher ¶
type HeaderMatcher map[string]matcher.Matcher
HeaderMatcher matches the header values.
type PayloadDecoder ¶
PayloadDecoder decodes an input for matching.
type PayloadMatcher ¶
type PayloadMatcher struct {
// contains filtered or unexported fields
}
PayloadMatcher matches a payload of a grpc request.
func Payload ¶
func Payload(m matcher.Matcher, decode PayloadDecoder) *PayloadMatcher
Payload initiates a new payload matcher.
func (PayloadMatcher) Actual ¶
func (m PayloadMatcher) Actual() string
Actual returns the decoded input.
func (PayloadMatcher) Expected ¶
func (m PayloadMatcher) Expected() string
Expected returns the expectation.
func (*PayloadMatcher) Match ¶
func (m *PayloadMatcher) Match(in interface{}) (bool, error)
Match satisfies matcher.Matcher interface.
func (*PayloadMatcher) Matcher ¶
func (m *PayloadMatcher) Matcher() matcher.Matcher
Matcher returns the underlay matcher.
Click to show internal directories.
Click to hide internal directories.