lokiutil

package
v4.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch = []*logproto.Stream

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(url string, maxSize int, maxWait time.Duration, keys []string) *Client

func (*Client) Errc

func (c *Client) Errc() <-chan error

func (*Client) Log

func (c *Client) Log(m Message)

func (*Client) Run

func (c *Client) Run() error

Run processes the messages in the background. It needs to get stopped by Stop() to not lose messages. It is not controlled by a context, because logging should be the last component that gets stopped.

func (*Client) Stop

func (c *Client) Stop()

Stop sends the remaining messages and stops processing new ones.

type Message

type Message = map[string]interface{}

Jump to

Keyboard shortcuts

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