Versions in this module Expand all Collapse all v0 v0.1.3 Nov 3, 2017 Changes in this version + const EmptyTag + func NewDialer(conf DialerConfig) netutil.Dialer + func NewHTTP2Transport(conf TransportConfig, dial netutil.DialerFunc) *http.Transport + func NewTransport(conf TransportConfig, dial netutil.DialerFunc) *http.Transport + func WrapGun(g Gun) core.Gun + type Ammo interface + Id func() int + Request func() (*http.Request, *netsample.Sample) + type AutoTagConfig struct + Enabled bool + NoTagOnly bool + URIElements int + type BaseGun struct + Aggregator netsample.Aggregator + Config BaseGunConfig + Connect func(ctx context.Context) error + DebugLog bool + Do func(r *http.Request) (*http.Response, error) + Log *zap.Logger + OnClose func() error + func (b *BaseGun) Bind(aggregator netsample.Aggregator) + func (b *BaseGun) Close() error + func (b *BaseGun) Shoot(ctx context.Context, ammo Ammo) + type BaseGunConfig struct + AutoTag AutoTagConfig + func NewDefaultBaseGunConfig() BaseGunConfig + type Client interface + CloseIdleConnections func() + Do func(req *http.Request) (*http.Response, error) + type ClientConfig struct + Dialer DialerConfig + Redirect bool + Transport TransportConfig + func NewDefaultClientConfig() ClientConfig + type ClientGunConfig struct + Base BaseGunConfig + SSL bool + Target string + func NewDefaultClientGunConfig() ClientGunConfig + type ConnectGun struct + func NewConnectGun(conf ConnectGunConfig) *ConnectGun + func (g *ConnectGun) Do(req *http.Request) (*http.Response, error) + type ConnectGunConfig struct + Client ClientConfig + ConnectSSL bool + SSL bool + Target string + func NewDefaultConnectGunConfig() ConnectGunConfig + type DialerConfig struct + DNSCache bool + DualStack bool + FallbackDelay time.Duration + KeepAlive time.Duration + Timeout time.Duration + func NewDefaultDialerConfig() DialerConfig + type Gun interface + Bind func(netsample.Aggregator) + Shoot func(context.Context, Ammo) + type HTTP2GunConfig struct + Client ClientConfig + Gun ClientGunConfig + func NewDefaultHTTP2GunConfig() HTTP2GunConfig + type HTTPGun struct + func NewClientGun(client Client, conf ClientGunConfig) *HTTPGun + func NewHTTP2Gun(conf HTTP2GunConfig) (*HTTPGun, error) + func NewHTTPGun(conf HTTPGunConfig) *HTTPGun + func (g *HTTPGun) Do(req *http.Request) (*http.Response, error) + type HTTPGunConfig struct + Client ClientConfig + Gun ClientGunConfig + func NewDefaultHTTPGunConfig() HTTPGunConfig + type TransportConfig struct + DisableCompression bool + DisableKeepAlives bool + ExpectContinueTimeout time.Duration + IdleConnTimeout time.Duration + MaxIdleConns int + MaxIdleConnsPerHost int + ResponseHeaderTimeout time.Duration + TLSHandshakeTimeout time.Duration + func NewDefaultTransportConfig() TransportConfig