Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a Loki client.
func NewClient ¶
func NewClient(ctx context.Context, u *url.URL, username string, password string, caCert string, instance string, location string, logLevel string, labels []string, types []string) *Client
NewClient returns a Client.
func (*Client) HandleEvent ¶
HandleEvent handles the event received from the internal event listener.
type Entry ¶
Entry represents a log entry. It includes a log message and the time it occurred at.
func (Entry) MarshalJSON ¶
MarshalJSON returns the JSON encoding of Entry.
type PushRequest ¶
type PushRequest struct {
Streams []*Stream `json:"streams"`
}
PushRequest models a log stream push.
Click to show internal directories.
Click to hide internal directories.