Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecCloser ¶
ExecCloser 将logrus条目写入数据库并关闭数据库
func NewExecWithURL ¶
func NewExecWithURL(sess *mongodb.MongoDB) ExecCloser
NewExecWithURL create an exec instance
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
Hook 将日志发送到 mongo 数据库
func DefaultWithURL ¶
DefaultWithURL create a default mongo hook
Click to show internal directories.
Click to hide internal directories.