Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogConsumer ¶ added in v3.1.0
type LogConsumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶ added in v3.1.0
func NewConsumer(conn *amqp.Connection, mongo *mongo.Client) (LogConsumer, error)
func (*LogConsumer) Listen ¶ added in v3.1.0
func (consumer *LogConsumer) Listen() error
type LogEntry ¶ added in v3.1.0
type LogEntry struct { ID string `bson:"_id,omitempty" json:"id,omitempty"` Service string `bson:"service" json:"service"` Data string `bson:"data" json:"data"` LogLevel string `bson:"log_level" json:"log_level"` CreatedAt time.Time `bson:"created_at" json:"created_at"` UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` }
type LogPayload ¶
type LogPublisher ¶
type LogPublisher struct {
// contains filtered or unexported fields
}
func (*LogPublisher) LogERROR ¶
func (l *LogPublisher) LogERROR(serviceName, data string)
func (*LogPublisher) LogINFO ¶
func (l *LogPublisher) LogINFO(serviceName, data string)
func (*LogPublisher) LogWARNING ¶
func (l *LogPublisher) LogWARNING(serviceName, data string)
func (*LogPublisher) SetAMQPConnection ¶
func (l *LogPublisher) SetAMQPConnection(connection *amqp.Connection)
func (*LogPublisher) SetLogLevel ¶
func (l *LogPublisher) SetLogLevel(level uint)
Click to show internal directories.
Click to hide internal directories.