http

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ServerModule for fx.
	ServerModule = fx.Options(fx.Invoke(Register), fx.Provide(NewMux))

	// ClientModule for fx.
	ClientModule = fx.Options(fx.Provide(NewRoundTripper))

	// Module for fx.
	Module = fx.Options(ServerModule, ClientModule)
)

Functions

func NewMux

func NewMux() *runtime.ServeMux

NewMux for HTTP.

func NewRoundTripper

func NewRoundTripper(logger *zap.Logger) http.RoundTripper

NewRoundTripper for HTTP.

func Register

func Register(lc fx.Lifecycle, s fx.Shutdowner, mux *runtime.ServeMux, cfg *config.Config, logger *zap.Logger)

Types

This section is empty.

Directories

Path Synopsis
logger
zap
security
trace

Jump to

Keyboard shortcuts

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