http

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 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(NewClient))

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

Functions

func NewClient added in v1.13.0

func NewClient(hrt http.RoundTripper) *http.Client

NewClient for HTTP.

func NewMux

func NewMux() *runtime.ServeMux

NewMux for HTTP.

func NewRoundTripper

func NewRoundTripper(logger *zap.Logger, hrt http.RoundTripper) 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