Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConnectionTCP = "tcp" ConnectionUDP = "udp" ConnectionLOCAL = "local" ConnectionFILE = "file" ConnectionNSQ = "nsq" )
View Source
const ( TagStartUp = "startup" TagConnect = "connect" TagRoutine = "routine" TagShutDown = "shutdown" )
View Source
const ( DelimiterV = " | " DelimiterH = " - " DelimiterA = " * " DefaultDelimiter = DelimiterV )
View Source
const (
LogCallerSkipLevels = 4
)
View Source
const MaxConnectorQ = 5 // TODO make configurable
View Source
const (
SyncFileAfterMessagesCount = 100
)
Variables ¶
View Source
var DefaultReconnectionTime = time.Minute // TODO make configurable
Functions ¶
This section is empty.
Types ¶
type LogWriter ¶
type LogWriter interface { Write([]byte) (int, error) WriteForced(LogLevel, []byte) (int, error) Close() error }
LogWriter is an interface that must be implemented for using with logger
type TimeParams ¶
TimeParams contains information about location and time format for logging
type WriterStatus ¶
type WriterStatus uint8
const ( WriterStatusUndefined WriterStatus = iota WriterStatusOk WriterStatusStopped )
Click to show internal directories.
Click to hide internal directories.