Documentation ¶ Index ¶ Variables func Add(name string, creator Creator) type Creator type Manager func NewOutputsManager(outputs []Output) (*Manager, error) func (m *Manager) SendEvent(event events.Event) func (m *Manager) Shutdown() type Output Constants ¶ This section is empty. Variables ¶ View Source var Outputs = map[string]Creator{} Outputs registry Functions ¶ func Add ¶ func Add(name string, creator Creator) Add output to the registry Types ¶ type Creator ¶ type Creator func() Output Creator function for an output type Manager ¶ type Manager struct { // contains filtered or unexported fields } Manager used to handle outputs worker func NewOutputsManager ¶ func NewOutputsManager(outputs []Output) (*Manager, error) NewOutputsManager create an outputs manager func (*Manager) SendEvent ¶ func (m *Manager) SendEvent(event events.Event) SendEvent sent event to all outputs func (*Manager) Shutdown ¶ func (m *Manager) Shutdown() Shutdown stop the manager type Output ¶ type Output interface { // Connect to the Output Connect() error // Close any connections to the Output Close() error // SendEvent sent event to the Output SendEvent(evt events.Event) error } Output writer Source Files ¶ View all Source files manager.go output.go registry.go Directories ¶ Show internal Expand all Path Synopsis all file http loki logproto prometheus Click to show internal directories. Click to hide internal directories.