loki

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: GPL-3.0 Imports: 13 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(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
	UserAgent         string
	TargetName        string
	Location          string
}

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