client

package
v0.0.0-...-5e990d0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: Apache-2.0 Imports: 8 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.Client
	// contains filtered or unexported fields
}
var DefaultClient *Client

func NewClient

func NewClient(opts *ClientOpts) *Client

type ClientOpts

type ClientOpts struct {
	RequestTimeout  config.Duration `yaml:"request_timeout" json:"request_timeout"` // Default: 5s
	Retries         int             `yaml:"retries" json:"retries"`                 // Default: 1
	PoolSize        int             `yaml:"pool_size" json:"pool_size"`             // Default: 0
	PoolTTL         config.Duration `yaml:"pool_ttl" json:"pool_ttl"`               // Default: 1m
	BrokerAddress   []string        `yaml:"broker_address" json:"broker_address"`
	RegistryAddress []string        `yaml:"registry_address" json:"registry_address"`
	Selector        string          `yaml:"selector" json:"selector"`
}

Jump to

Keyboard shortcuts

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