Help us shape the future of Go! Take the 2026 Go Developer Survey

dispatcher

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 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 Dispatcher

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

Dispatcher is Event Dispatcher

func NewDispatcher

func NewDispatcher(opts Options) *Dispatcher

func (*Dispatcher) Dispatch

func (d *Dispatcher) Dispatch(ctx context.Context, events []*entities.Event) ([]*entities.Attempt, error)

func (*Dispatcher) DispatchEndpoint added in v0.2.0

func (d *Dispatcher) DispatchEndpoint(ctx context.Context, event *entities.Event, endpoints []*entities.Endpoint) ([]*entities.Attempt, error)

func (*Dispatcher) WarmUp added in v0.8.0

func (d *Dispatcher) WarmUp()

type Options added in v0.8.0

type Options struct {
	DB       *db.DB
	Metrics  *metrics.Metrics
	Registry *Registry
	EventBus eventbus.EventBus
}

type Registration added in v0.8.0

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

func NewRegistration added in v0.8.0

func NewRegistration(endpoints []*entities.Endpoint) *Registration

func (*Registration) LookUp added in v0.8.0

func (r *Registration) LookUp(event *entities.Event) []*entities.Endpoint

type Registry added in v0.8.0

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

func NewRegistry added in v0.8.0

func NewRegistry(db *db.DB) *Registry

func (*Registry) LookUp added in v0.8.0

func (r *Registry) LookUp(ctx context.Context, event *entities.Event) ([]*entities.Endpoint, error)

func (*Registry) Unregister added in v0.8.0

func (r *Registry) Unregister(wid string)

func (*Registry) Warmup added in v0.8.0

func (r *Registry) Warmup() error

Jump to

Keyboard shortcuts

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