pool

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetGlobal

func SetGlobal(p *Pool)

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

func Global

func Global() *Pool

func New

func New() *Pool

func (*Pool) Get

func (p *Pool) Get() *http.Client

func (*Pool) GetWithTransport

func (p *Pool) GetWithTransport(tr http.RoundTripper) *http.Client

func (*Pool) Recycle

func (p *Pool) Recycle(c *http.Client)

Jump to

Keyboard shortcuts

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