transport

package
v0.0.0-...-b0852c1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client *http.Client
}

Client is a holder of an http.Client. In future it will have some high level logic attached to it (PostProtobuf, PostJson, retries, metrics, etc). The underlying Client is exposed so that things that require a real http.Client (such as Cloudwatch) can still utilize the TransportPool.

type TransportPool

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

TransportPool creates http.Clients as required, using the provided viper.Viper for configuration.

func NewTransportPool

func NewTransportPool(logger logrus.FieldLogger, config *viper.Viper) *TransportPool

func (*TransportPool) Get

func (tp *TransportPool) Get(name string) (*Client, error)

Jump to

Keyboard shortcuts

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