evtproc

package
v0.0.0-...-71eb8d2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("processor",
	fx.Provide(
		fx.Annotate(
			NewServer,
			fx.ParamTags(`group:"processorOptions"`),
		),
	),
)

Functions

func AsOption

func AsOption(f any) any

func DispatchEvent

func DispatchEvent[T event.DroneEvents](ctx context.Context, subscriber bus.Subscriber, topic string, p DroneProcessor[T]) error

Types

type DroneProcessor

type DroneProcessor[T event.DroneEvents] func(ctx context.Context, evt *T) error

type Option

type Option func(s *Server)

func WithLogger

func WithLogger(logger zerolog.Logger) Option

type Server

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

func NewServer

func NewServer(opts ...Option) *Server

func (*Server) Run

func (ep *Server) Run(ctx context.Context, addr string) error

Jump to

Keyboard shortcuts

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