Documentation
¶
Index ¶
- func DeltaCounterName(name string) string
- func GetHostname(defaultVal string) string
- func HasDeltaPrefix(name string) bool
- type ConnectionHandler
- type Flusher
- type LineHandler
- type ProxyConnectionHandler
- func (handler *ProxyConnectionHandler) Close()
- func (handler *ProxyConnectionHandler) Connect() error
- func (handler *ProxyConnectionHandler) Connected() bool
- func (handler *ProxyConnectionHandler) Flush() error
- func (handler *ProxyConnectionHandler) GetFailureCount() int64
- func (handler *ProxyConnectionHandler) SendData(lines string) error
- func (handler *ProxyConnectionHandler) Start()
- type Reporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeltaCounterName ¶
Gets a delta counter name prefixed with ∆.
func GetHostname ¶
func HasDeltaPrefix ¶
Types ¶
type ConnectionHandler ¶
type ConnectionHandler interface {
Connect() error
Connected() bool
Close()
SendData(lines string) error
Flusher
}
func NewProxyConnectionHandler ¶
func NewProxyConnectionHandler(address string, ticker *time.Ticker) ConnectionHandler
type LineHandler ¶
type LineHandler struct {
Reporter Reporter
BatchSize int
MaxBufferSize int
FlushTicker *time.Ticker
Format string
// contains filtered or unexported fields
}
func (*LineHandler) Flush ¶
func (lh *LineHandler) Flush() error
func (*LineHandler) GetFailureCount ¶
func (lh *LineHandler) GetFailureCount() int64
func (*LineHandler) HandleLine ¶
func (lh *LineHandler) HandleLine(line string) error
func (*LineHandler) Start ¶
func (lh *LineHandler) Start()
func (*LineHandler) Stop ¶
func (lh *LineHandler) Stop()
type ProxyConnectionHandler ¶
type ProxyConnectionHandler struct {
// contains filtered or unexported fields
}
func (*ProxyConnectionHandler) Close ¶
func (handler *ProxyConnectionHandler) Close()
func (*ProxyConnectionHandler) Connect ¶
func (handler *ProxyConnectionHandler) Connect() error
func (*ProxyConnectionHandler) Connected ¶
func (handler *ProxyConnectionHandler) Connected() bool
func (*ProxyConnectionHandler) Flush ¶
func (handler *ProxyConnectionHandler) Flush() error
func (*ProxyConnectionHandler) GetFailureCount ¶
func (handler *ProxyConnectionHandler) GetFailureCount() int64
func (*ProxyConnectionHandler) SendData ¶
func (handler *ProxyConnectionHandler) SendData(lines string) error
func (*ProxyConnectionHandler) Start ¶
func (handler *ProxyConnectionHandler) Start()
Click to show internal directories.
Click to hide internal directories.