mock

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	mock.Mock
}

func (*Dispatcher) Dispatch

func (m *Dispatcher) Dispatch(ctx context.Context, e messenger.Envelope)

type Envelope

type Envelope struct {
	mock.Mock
}

func (*Envelope) FirstHeader

func (m *Envelope) FirstHeader(name string) (string, bool)

func (*Envelope) HasHeader

func (m *Envelope) HasHeader(name string) bool

func (*Envelope) Header

func (m *Envelope) Header(name string) []string

func (*Envelope) Headers

func (m *Envelope) Headers() map[string][]string

func (*Envelope) Is

func (m *Envelope) Is(e messenger.Envelope) bool

func (*Envelope) LastHeader

func (m *Envelope) LastHeader(name string) (string, bool)

func (*Envelope) Message

func (m *Envelope) Message() interface{}

type Middleware

type Middleware struct {
	mock.Mock
}

func (*Middleware) Handle

type Receiver

type Receiver struct {
	mock.Mock
}

func (*Receiver) Ack

func (*Receiver) Nack

func (m *Receiver) Nack(ctx context.Context, e messenger.Envelope) error

func (*Receiver) Receive

func (m *Receiver) Receive(ctx context.Context) (<-chan messenger.Envelope, error)

type Sender

type Sender struct {
	mock.Mock
}

func (*Sender) Send

func (m *Sender) Send(ctx context.Context, e messenger.Envelope) error

Jump to

Keyboard shortcuts

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