browser

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,
		func(cfg config.Config) browsing.ServiceOpts {
			return browsing.ServiceOpts{
				Liveness: cfg.BrowserServerLiveness,
			}
		},
	),
	fx.Provide(
		fx.Private,
		browsing.NewService,
	),
	fx.Provide(
		fx.Private,
		newHandler,
	),
	fx.Provide(NewBrowser),
)

Functions

This section is empty.

Types

type Browser

type Browser struct{}

func NewBrowser

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

type Handler

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

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, conn *net.TCPConn)

Jump to

Keyboard shortcuts

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