loki

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 14 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 struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(target *plan.LogTarget) *Client

func NewClientWithOptions

func NewClientWithOptions(target *plan.LogTarget, options *ClientOptions) *Client

func (*Client) Add

func (c *Client) Add(entry servicelog.Entry) error

func (*Client) Flush

func (c *Client) Flush(ctx context.Context) error

func (*Client) SetLabels added in v1.6.0

func (c *Client) SetLabels(serviceName string, labels map[string]string)

type ClientOptions

type ClientOptions struct {
	RequestTimeout    time.Duration
	MaxRequestEntries int
}

ClientOptions allows overriding default parameters (e.g. for testing)

Jump to

Keyboard shortcuts

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