Documentation
¶
Index ¶
Constants ¶
View Source
const LOG_ENTRIES_CHAN_SIZE = 5000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LokiWriter ¶
LokiWriter send log messages towards Loki.
func NewLokiWriter ¶
func NewLokiWriter( rootUrl string, timeOffset int64, opts ...LokiWriterOption, ) (*LokiWriter, error)
func (*LokiWriter) Shutdown ¶
func (h *LokiWriter) Shutdown()
type LokiWriterOption ¶
type LokiWriterOption func(h *LokiWriter)
func WithBasicAuth ¶
func WithBasicAuth(username, password string) LokiWriterOption
func WithFields ¶
func WithFields(fields []string) LokiWriterOption
func WithLabels ¶
func WithLabels(kv map[string]string) LokiWriterOption
Click to show internal directories.
Click to hide internal directories.