Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { OnStop func() // contains filtered or unexported fields }
Client is a fake client used for testing.
func (*Client) Clear ¶
func (c *Client) Clear()
Clear is used to clean up the buffered received entries, so the same client can be re-used between test cases.
func (*Client) LogsReceiver ¶
func (c *Client) LogsReceiver() loki.LogsReceiver
LogsReceiver returns this client as a LogsReceiver, which is useful in testing.
Click to show internal directories.
Click to hide internal directories.