adapters

package
v8.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdapterError = "error"
	AdapterFile  = "file"
	AdapterTerm  = "term"
	AdapterKafka = "kafka"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterManager

type AdapterManager interface {
	// Get
	// registry from manager.
	Get(name string) func() AdapterRegistry

	// Set
	// registry into manager.
	//
	// Override if exists. You must restart client if used
	// registry changed.
	Set(name string, callee func() AdapterRegistry) AdapterManager
}
var (
	Adapter AdapterManager
)

type AdapterRegistry

type AdapterRegistry interface {
	// Logs
	// write lines to target storage / device.
	Logs(lines ...*base.Line) error

	// SetFormatter
	// specify log content formatter handler.
	SetFormatter(formatter formatters.Formatter)
}

AdapterRegistry interface for customer adapter.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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