matcher

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(matchers ...messenger.Matcher) messenger.Matcher

func Any

func Any() messenger.Matcher

func ContentTypeEquals

func ContentTypeEquals(t string) messenger.Matcher

func HasHeader

func HasHeader(name string) messenger.Matcher

func MessageTypeEquals

func MessageTypeEquals(t string) messenger.Matcher

MessageTypeEquals matches all envelopes that have type header equal to t

func None

func None() messenger.Matcher

func Some added in v1.1.0

func Some(matchers ...messenger.Matcher) messenger.Matcher

func Type

func Type(prototype interface{}) messenger.Matcher

Type matches envelopes with message with the same type as the prototype

Types

type MatchFunc

type MatchFunc func(e messenger.Envelope) bool

MatchFunc matches envelopes using given predicate

func (MatchFunc) Matches

func (f MatchFunc) Matches(e messenger.Envelope) bool

Jump to

Keyboard shortcuts

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