Documentation ¶
Index ¶
- type Drain
- type Metric
- type Router
- func (router *Router) AddInput(in input.Input, id string) error
- func (router *Router) Close() error
- func (router *Router) DeadPackets() int
- func (router *Router) Dial() error
- func (router *Router) Metrics() map[string]Metric
- func (router *Router) RemoveInput(id string) error
- func (router *Router) ResetMetrics()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Drain ¶
type Drain struct { Input chan syslog.Packet Info chan string Error chan error Endpoint string // contains filtered or unexported fields }
Drain creates an output to the specified schema and manages back pressure and sends packets down to the ouptut.
func (*Drain) MaxConnections ¶
MaxConnections returns the maximum allowed connections
func (*Drain) OpenConnections ¶
OpenConnections returns the open connections
func (*Drain) ResetMetrics ¶
func (drain *Drain) ResetMetrics()
ResetMetrics sets the sent and errors values to zero
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) DeadPackets ¶
func (*Router) RemoveInput ¶
func (*Router) ResetMetrics ¶
func (router *Router) ResetMetrics()
Click to show internal directories.
Click to hide internal directories.