http

package
v1.19.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient added in v1.13.0

func NewClient(logger *zap.Logger) *http.Client

NewClient for HTTP.

func NewClientWithRoundTripper added in v1.17.0

func NewClientWithRoundTripper(logger *zap.Logger, hrt http.RoundTripper) *http.Client

NewClientWithRoundTripper for HTTP.

func NewMux

func NewMux() *runtime.ServeMux

NewMux for HTTP.

func Register

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

Register for HTTP.

Types

type Config added in v1.19.0

type Config struct {
	Port string `envconfig:"HTTP_PORT" required:"true" default:"8080"`
}

Config for HTTP.

func NewConfig added in v1.19.0

func NewConfig() (*Config, error)

NewConfig for HTTP.

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