loki_sink_for_zap

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 11 Imported by: 1

README

loki-sink-for-zap

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLokiSink

func NewLokiSink(client *http.Client) func(u *url.URL, tags LokiTags) (zap.Sink, error)

Types

type LokiTags

type LokiTags map[string]interface{}

type LokiWriteSyncer

type LokiWriteSyncer struct {
	Url  string
	Tags LokiTags
	// contains filtered or unexported fields
}

func NewLokiWriteSyncer added in v0.2.0

func NewLokiWriteSyncer(ctx context.Context) *LokiWriteSyncer

func (LokiWriteSyncer) Close

func (l LokiWriteSyncer) Close() error

func (*LokiWriteSyncer) Sync

func (l *LokiWriteSyncer) Sync() error

func (*LokiWriteSyncer) Write

func (l *LokiWriteSyncer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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