Documentation ¶
Index ¶
- Constants
- func CloseAll()
- func DrainCount(Url string) (int, error)
- func Init()
- func PrintMetrics()
- func Undial(Id string, Url string) error
- type Drain
- type HttpDrain
- type SyslogDrain
- func (p *SyslogDrain) Close()
- func (p *SyslogDrain) Flush()
- func (l *SyslogDrain) Id() string
- func (p *SyslogDrain) Init(Id string, DestinationUrl string) error
- func (p *SyslogDrain) OpenConnections() uint32
- func (l *SyslogDrain) Packets() chan syslog.Packet
- func (p *SyslogDrain) PrintMetrics()
- func (l *SyslogDrain) Url() string
Constants ¶
View Source
const MaxLogSize int = 99990
Variables ¶
This section is empty.
Functions ¶
func DrainCount ¶
func PrintMetrics ¶
func PrintMetrics()
Types ¶
type Drain ¶
type HttpDrain ¶
type HttpDrain struct {
// contains filtered or unexported fields
}
func (*HttpDrain) PrintMetrics ¶
func (l *HttpDrain) PrintMetrics()
type SyslogDrain ¶
type SyslogDrain struct { MaxConnections uint32 Attempting uint32 Sent uint32 Mutex *sync.Mutex Pressure float64 // contains filtered or unexported fields }
func (*SyslogDrain) Close ¶
func (p *SyslogDrain) Close()
func (*SyslogDrain) Flush ¶
func (p *SyslogDrain) Flush()
func (*SyslogDrain) Id ¶
func (l *SyslogDrain) Id() string
func (*SyslogDrain) OpenConnections ¶
func (p *SyslogDrain) OpenConnections() uint32
func (*SyslogDrain) Packets ¶
func (l *SyslogDrain) Packets() chan syslog.Packet
func (*SyslogDrain) PrintMetrics ¶
func (p *SyslogDrain) PrintMetrics()
func (*SyslogDrain) Url ¶
func (l *SyslogDrain) Url() string
Click to show internal directories.
Click to hide internal directories.