lokigrpc

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDifferentOrgIDPresent = errors.New("different org ID already present")
	ErrTooManyOrgIDs         = errors.New("multiple org IDs present")
)

Functions

This section is empty.

Types

type Client

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

Client is a gRPC-based Loki client implementation.

func NewClient

func NewClient(cfg Config, opts ...grpc.DialOption) (*Client, error)

NewClient instantiates a new Client.

func (*Client) Close

func (c *Client) Close() error

Close closes the attached gRPC connection.

func (*Client) Write

func (c *Client) Write(streams []logproto.Stream) (err error)

Write pushes a new request with the given streams through the attached gRPC connection.

type Config

type Config struct {
	URL string

	Retries uint
	Timeout time.Duration

	TLSDisabled bool

	TenantID string
}

Config describes configuration for a gRPC pusher client.

Jump to

Keyboard shortcuts

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