dispatcher

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 13 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
}

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