fx

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OptionHTTPServer = fx.Provide(NewServer)

Functions

func NewServer

func NewServer(params ServerParams) (*server.Server, error)

Types

type ServerParams

type ServerParams struct {
	fx.In
	Lifecycle fx.Lifecycle
	Config    server.Config
	Handler   http.Handler
	Logger    *zap.Logger
}

Jump to

Keyboard shortcuts

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