Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is used to interact with the logging server.
func (*Client) WithFlushInterval ¶
WithFlushInterval specifies how long to wait before flushing the buffer to the log server. This returns a function which flushes the client and should be called with defer before main exits.
func (*Client) WithHTTPClient ¶
func (c *Client) WithHTTPClient(client HTTPClient) *Client
type HTTPClient ¶
HTTPClient is satisfied by *http.Client but enables us to pass in alternative http clients as well with different features (such as automatic retries or allowing host-based communication over a LAN).
type LogTarget ¶
type LogTarget interface { Name() string io.WriteCloser }
LogTarget is something that SLS will write logs to.
Click to show internal directories.
Click to hide internal directories.