Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoCustomLog ¶
type MongoCustomLog struct {
ID bson.ObjectId `bson:"_id,omitempty" json:"_id"`
Level string `json:"level"`
Message string `json:"message"`
Timestamp int64 `json:"timestamp"`
ExpiresAt time.Time `bson:"expiresAt" json:"-"`
ExpiresAtShow int64 `bson:"expiresAtIntJustToShow" json:"expiresAt"`
Tags []string `json:"tags,omitempty"`
AdditionalData interface{} `bson:"additionalData" json:"additionalData,omitempty"`
}
MongoCustomLog Struc for custom log
type MongoLog ¶
type MongoLog struct {
ID bson.ObjectId `bson:"_id,omitempty" json:"_id"`
Level string `json:"level"`
Message string `json:"message"`
Timestamp int64 `json:"timestamp"`
ExpiresAt time.Time `bson:"expiresAt" json:"-"`
ExpiresAtShow int64 `bson:"expiresAtIntJustToShow" json:"expiresAt"`
}
MongoLog Struc for common log
Click to show internal directories.
Click to hide internal directories.