Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRegistry = NewRegistry()
Functions ¶
This section is empty.
Types ¶
type BatchDestination ¶
type BatchDestination interface {
SubmitBatch(*[]Event)
}
type Destination ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) AddDestination ¶
func (r *Registry) AddDestination(dest Destination)
AddDestination adds an output to the registry. Do not call AddDestination if (*Registry).Submit might be called concurrently. It is expected that AddDestination will be called at initialization time before any events.
Click to show internal directories.
Click to hide internal directories.