events

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter interface {
	Send(ctx context.Context, evt models.Event) error
}

func NewEmitter

func NewEmitter(logger log.Logger, cfg *service.EventsConfig) (Emitter, error)

type MockEmitter

type MockEmitter struct {
	// contains filtered or unexported fields
}

func (*MockEmitter) Send added in v0.3.0

func (e *MockEmitter) Send(_ context.Context, evt models.Event) error

func (*MockEmitter) Sent added in v0.23.0

func (e *MockEmitter) Sent() []models.Event

Jump to

Keyboard shortcuts

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