Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotConnected indicates failure due to client having no valid connection ErrNotConnected = errors.New("not connected") // ErrJSONEncodeFailed indicates encoding failures ErrJSONEncodeFailed = errors.New("json encode failed") )
Functions ¶
Types ¶
type Client ¶
type Client struct { Connection // contains filtered or unexported fields }
Client struct
func (*Client) BatchPublishEvent ¶
BatchPublishEvent publish a single event to output.
func (*Client) PublishEvent ¶
PublishEvent publish a single event to output.
type ClientSettings ¶
type ClientSettings struct { URL string Proxy *url.URL TLS *transport.TLSConfig Username, Password string Parameters map[string]string Index outil.Selector Pipeline *outil.Selector Timeout time.Duration CompressionLevel int Observer outputs.Observer BatchPublish bool Headers map[string]string ContentType string }
ClientSettings struct
type Connection ¶
type Connection struct { URL string Username string Password string ContentType string // contains filtered or unexported fields }
Connection struct
func (*Connection) Connect ¶
func (conn *Connection) Connect() error
Connect establishes a connection to the clients sink.
Click to show internal directories.
Click to hide internal directories.