loki

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "loki"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL                string            `yaml:"url,omitempty" validate:"required"`
	ContentType        string            `yaml:"contentType,omitempty" default:"json" validate:"oneof=json protobuf"`
	TenantId           string            `yaml:"tenantId,omitempty"`
	Timeout            time.Duration     `yaml:"timeout,omitempty" default:"30s"`
	EntryLine          string            `yaml:"entryLine,omitempty"`
	Headers            map[string]string `yaml:"header,omitempty"`
	InsecureSkipVerify bool              `yaml:"insecureSkipVerify" default:"false"`
}

type Sink

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

func NewSink

func NewSink() *Sink

func (*Sink) Category

func (s *Sink) Category() api.Category

func (*Sink) Config

func (s *Sink) Config() interface{}

func (*Sink) Consume

func (s *Sink) Consume(batch api.Batch) api.Result

func (*Sink) Init

func (s *Sink) Init(context api.Context) error

func (*Sink) Start

func (s *Sink) Start() error

func (*Sink) Stop

func (s *Sink) Stop()

func (*Sink) String

func (s *Sink) String() string

func (*Sink) Type

func (s *Sink) Type() api.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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