client

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT 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 interface {
	PostLogEntry(request interface{}) (err error)
}

type TCP

type TCP struct {
	// contains filtered or unexported fields
}

TCP is an TCP client structure supporting http operations for the datadog api

func NewTCPClient

func NewTCPClient(host string, port string, apiKey string, useSsl bool) *TCP

NewTCPClient creates a new http client for the datadog api

func (*TCP) Connect

func (c *TCP) Connect() (err error)

Connect attempts to establish a tcp connection to the datadog api

func (*TCP) Disconnect

func (c *TCP) Disconnect() (err error)

Disconnect tries to disconnect from the datadog api

func (*TCP) PostLogEntry

func (c *TCP) PostLogEntry(logEntry interface{}) (err error)

PostLogEntry tries to post the log entry to the Datadog API

func (*TCP) Reconnect

func (c *TCP) Reconnect()

Reconnect tries to reconnect to the Datadog API

func (*TCP) WithMaxRetries

func (c *TCP) WithMaxRetries(maxRetries int) *TCP

WithMaxRetries configures the max allowed retries to post to the api. Number of retries can't be negative

Jump to

Keyboard shortcuts

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