shipper

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorBehaviour

type ErrorBehaviour int
const (
	ErrorBehaviourDrop ErrorBehaviour = iota
	ErrorBehaviourPanic
)

type LineHandler

type LineHandler interface {
	HandleLine(line string)
}

type LogShipper

type LogShipper struct {
	APIClient           *api.Client
	URL                 string
	Fields              map[string]string
	ParserName          string
	MaxAttemptsPerBatch int
	ErrorBehaviour      ErrorBehaviour
	BatchSizeLines      int
	BatchSizeBytes      int
	BatchTimeout        time.Duration
	Logger              func(format string, v ...interface{})
	// contains filtered or unexported fields
}

func (*LogShipper) Finish

func (s *LogShipper) Finish()

func (*LogShipper) HandleLine

func (s *LogShipper) HandleLine(line string)

func (*LogShipper) Start

func (s *LogShipper) Start()

type MultiLineHandler

type MultiLineHandler struct {
	LineHandler LineHandler
	Regex       *regexp.Regexp
	Mode        MultiLineHandlerMode
	// contains filtered or unexported fields
}

func (*MultiLineHandler) HandleLine

func (h *MultiLineHandler) HandleLine(line string)

type MultiLineHandlerMode

type MultiLineHandlerMode int
const (
	MultiLineHandlerModeBeginsWith MultiLineHandlerMode = iota
	MultiLineHandlerModeContinuesWith
)

Jump to

Keyboard shortcuts

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