http

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Unlicense Imports: 13 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(params *ClientParams) *http.Client

NewClient for HTTP.

func NewServer added in v1.20.0

func NewServer(lc fx.Lifecycle, s fx.Shutdowner, cfg *Config, logger *zap.Logger) *http.Server

NewServer for HTTP.

Types

type ClientParams added in v1.30.0

type ClientParams struct {
	Config       *Config
	Logger       *zap.Logger
	RoundTripper http.RoundTripper
}

ClientParams for HTTP.

type Config added in v1.19.0

type Config struct {
	Port      string       `yaml:"port"`
	Retry     retry.Config `yaml:"retry"`
	UserAgent string       `yaml:"user_agent"`
}

Config for HTTP.

Directories

Path Synopsis
logger
zap
security
jwt
trace

Jump to

Keyboard shortcuts

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