Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type 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
Click to show internal directories.
Click to hide internal directories.