Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BytesMatcher ¶
BytesMatcher matches a []byte based on an operator and a value
func Contains ¶
func Contains(value []byte) *BytesMatcher
Contains constructs a new BytesMatcher that matches using the Contains operator
func Full ¶
func Full(value []byte) *BytesMatcher
Full constructs a new BytesMatcher that matches using the Full operator
func Prefix ¶
func Prefix(value []byte) *BytesMatcher
Prefix constructs a new BytesMatcher that matches using the Prefix operator
func Suffix ¶
func Suffix(value []byte) *BytesMatcher
Suffix constructs a new BytesMatcher that matches using the Suffix operator
func (*BytesMatcher) Match ¶
func (m *BytesMatcher) Match(value []byte) error
Match attempts to match a []byte based on the BytesMatcher
func (*BytesMatcher) UnmarshalJSON ¶
func (m *BytesMatcher) UnmarshalJSON(b []byte) error
Unmarshal implements json.Unmarshaler
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator is en enum over types of BytesMatcher
func (Operator) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface
func (*Operator) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.