Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
Id *int64 `db:"id,-" json:"id"`
Host null.String `db:"host" json:"host"`
Timestamp null.TimeStamp `db:"timestamp" json:"timestamp"`
File null.String `db:"file" json:"file"`
Func null.String `db:"func" json:"func"`
Message null.String `db:"message" json:"message"`
Level null.String `db:"level" json:"level"`
Data null.JSON `db:"data" json:"data"`
}
type ExecCloser ¶
ExecCloser 将logrus条目写入数据库并关闭数据库
func NewExec ¶
func NewExec(client sql.SqlConn, tableName string) ExecCloser
NewExec create an exec instance
func NewExecWithURL ¶
func NewExecWithURL(client sql.SqlConn, tableName string) ExecCloser
NewExecWithURL create an exec instance
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
Hook 将日志发送到数据库
func DefaultWithURL ¶
DefaultWithURL create a default mongo hook
Click to show internal directories.
Click to hide internal directories.