Help us shape the future of Go! Take the 2026 Go Developer Survey

pkg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LokiHook

type LokiHook interface {
	log.Hook
	RunAndWait() error
}

func NewLokiGrpc

func NewLokiGrpc(addr string, options ...Option) LokiHook

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithBatchSize

func WithBatchSize(batchSize uint) Option

func WithBatchTimeout

func WithBatchTimeout(batchTimeout time.Duration) Option

func WithContext

func WithContext(ctx context.Context) Option

func WithLabels

func WithLabels(labels map[string]string) Option

func WithSendBatchTimeout

func WithSendBatchTimeout(sendBatchTimeout time.Duration) Option

Jump to

Keyboard shortcuts

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