Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogHandlerHandlerName = "LoggerHandler" ResponseTopic = "logger/response" )
Variables ¶
This section is empty.
Functions ¶
func CloseFiles ¶
func CloseFiles[T comparable](files map[T]*CSVFile) (err error)
func FlushFiles ¶
func FlushFiles[T comparable](files map[T]*CSVFile) (err error)
Types ¶
type Config ¶
type Config struct { Topics LoggerTopics `toml:"topics"` BasePath string `toml:"base_path"` FlushInterval string `toml:"flush_interval"` }
type LoggerHandler ¶
type LoggerHandler struct {
// contains filtered or unexported fields
}
func NewLoggerHandler ¶
func NewLoggerHandler(loggers map[string]Logger, config Config) LoggerHandler
func (*LoggerHandler) HandlerName ¶
func (handler *LoggerHandler) HandlerName() string
func (*LoggerHandler) Log ¶
func (handler *LoggerHandler) Log(loggable Loggable)
func (*LoggerHandler) NotifyDisconnect ¶
func (handler *LoggerHandler) NotifyDisconnect(client wsModels.Client)
func (*LoggerHandler) UpdateMessage ¶
func (handler *LoggerHandler) UpdateMessage(client wsModels.Client, msg wsModels.Message)
type LoggerTopics ¶
type LoggerTopics struct {
Enable string `toml:"enable"`
}
Click to show internal directories.
Click to hide internal directories.