Documentation ¶
Overview ¶
Go Riemann client
Index ¶
- type Client
- type ClientBuilder
- func (builder *ClientBuilder) Build() (c *Client, err error)
- func (builder *ClientBuilder) WithAddress(addr string) *ClientBuilder
- func (builder *ClientBuilder) WithDialer(dialer Dialer) *ClientBuilder
- func (builder *ClientBuilder) WithEnvironmentProxy() *ClientBuilder
- func (builder *ClientBuilder) WithNetwork(network string) *ClientBuilder
- func (builder *ClientBuilder) WithTimeout(duration time.Duration) *ClientBuilder
- type CnxnBuilder
- type Dialer
- type Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents a connection to a Riemann server
func Dial ¶
Dial establishes a connection to a Riemann server at addr, on the network netwrk.
Known networks are "tcp", "tcp4", "tcp6", "udp", "udp4", and "udp6".
func DialWithTimeout ¶
Dial establishes a connection to a Riemann server at addr, on the network netwrk, with a timeout of timeout
Known networks are "tcp", "tcp4", "tcp6", "udp", "udp4", and "udp6".
type ClientBuilder ¶
type ClientBuilder struct {
// contains filtered or unexported fields
}
the
func NewClientBuilder ¶
func NewClientBuilder() *ClientBuilder
func (*ClientBuilder) Build ¶
func (builder *ClientBuilder) Build() (c *Client, err error)
func (*ClientBuilder) WithAddress ¶
func (builder *ClientBuilder) WithAddress(addr string) *ClientBuilder
func (*ClientBuilder) WithDialer ¶
func (builder *ClientBuilder) WithDialer(dialer Dialer) *ClientBuilder
func (*ClientBuilder) WithEnvironmentProxy ¶
func (builder *ClientBuilder) WithEnvironmentProxy() *ClientBuilder
func (*ClientBuilder) WithNetwork ¶
func (builder *ClientBuilder) WithNetwork(network string) *ClientBuilder
func (*ClientBuilder) WithTimeout ¶
func (builder *ClientBuilder) WithTimeout(duration time.Duration) *ClientBuilder
type CnxnBuilder ¶
type CnxnBuilder interface { WithDialer(dialer Dialer) *CnxnBuilder WithEnvironmentProxy(use bool) *CnxnBuilder WithNetwork(network string) *CnxnBuilder WithTimeout(duration time.Duration) *CnxnBuilder Build() (*Client, error) }
ClientBuilder uses the builder pattern to create Clients with different options
type Dialer ¶
type Dialer interface { // Dial connects to the given address via the proxy. Dial(network, addr string) (c net.Conn, err error) }
A Dialer is a means to establish a connection.
Click to show internal directories.
Click to hide internal directories.