handler

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("handler",
	fx.Provide(
		fx.Annotate(
			New,
			fx.ParamTags("", `group:"handlerOptions"`),
		),
	),
)

Functions

func AsOption

func AsOption(f any) any

Types

type Handler

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

func New

func New(dispatcher bus.Dispatcher, opts ...Option) *Handler

func (*Handler) Run

func (h *Handler) Run(ctx context.Context, addr string) error

type Option

type Option func(h *Handler)

func WithLogger

func WithLogger(logger zerolog.Logger) Option

Jump to

Keyboard shortcuts

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