reporter

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("reporter",
	fx.Provide(
		fx.Private,
		newHandler,
	),
	fx.Provide(
		fx.Private,
		reporting.NewService,
	),
	fx.Provide(NewReporter),
)

Functions

This section is empty.

Types

type Handler

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

func (*Handler) Handle

func (h *Handler) Handle(
	ctx context.Context,
	conn *net.UDPConn,
	addr *net.UDPAddr,
	req []byte,
)

type Reporter

type Reporter struct{}

func NewReporter

func NewReporter(
	lc fx.Lifecycle,
	shutdowner fx.Shutdowner,
	handler *Handler,
	cfg config.Config,
	logger *zerolog.Logger,
) (*Reporter, error)

Jump to

Keyboard shortcuts

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