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.
Click to show internal directories.
Click to hide internal directories.