Documentation ¶
Index ¶
Constants ¶
View Source
const (
BATCH_DEFAULT_MAX = 50
)
View Source
const (
CHANNEL_SIZE = 1000
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchConsumer ¶
type BatchConsumer struct { Url string Max int DataBuffer []structs.EventData ItemBuffer []structs.Item Timeout time.Duration // contains filtered or unexported fields }
func InitBatchConsumer ¶
func InitBatchConsumer(url string, max, timeout int) (*BatchConsumer, error)
func (*BatchConsumer) Close ¶
func (c *BatchConsumer) Close() error
func (*BatchConsumer) Flush ¶
func (c *BatchConsumer) Flush() error
type ConcurrentLogWriter ¶
type ConcurrentLogWriter struct {
// contains filtered or unexported fields
}
func InitConcurrentLogWriter ¶
func InitConcurrentLogWriter(fname string, hourRotate bool) (*ConcurrentLogWriter, error)
func (*ConcurrentLogWriter) Close ¶
func (w *ConcurrentLogWriter) Close()
func (*ConcurrentLogWriter) Flush ¶
func (w *ConcurrentLogWriter) Flush()
type ConcurrentLoggingConsumer ¶
type ConcurrentLoggingConsumer struct { Fname string Hour bool // contains filtered or unexported fields }
func InitConcurrentLoggingConsumer ¶
func InitConcurrentLoggingConsumer(fname string, hour bool) (*ConcurrentLoggingConsumer, error)
func (*ConcurrentLoggingConsumer) Close ¶
func (c *ConcurrentLoggingConsumer) Close() error
func (*ConcurrentLoggingConsumer) Flush ¶
func (c *ConcurrentLoggingConsumer) Flush() error
type DebugConsumer ¶
func InitDebugConsumer ¶
func InitDebugConsumer(surl string, writeData bool, timeout int) (*DebugConsumer, error)
func (*DebugConsumer) Close ¶
func (c *DebugConsumer) Close() error
func (*DebugConsumer) Flush ¶
func (c *DebugConsumer) Flush() error
type DefaultConsumer ¶
func InitDefaultConsumer ¶
func InitDefaultConsumer(url string, timeout int) (*DefaultConsumer, error)
func (*DefaultConsumer) Close ¶
func (c *DefaultConsumer) Close() error
func (*DefaultConsumer) Flush ¶
func (c *DefaultConsumer) Flush() error
type LoggingConsumer ¶
func InitLoggingConsumer ¶
func InitLoggingConsumer(fname string, hour bool) (*LoggingConsumer, error)
func (*LoggingConsumer) Close ¶
func (c *LoggingConsumer) Close() error
func (*LoggingConsumer) Flush ¶
func (c *LoggingConsumer) Flush() error
Click to show internal directories.
Click to hide internal directories.