Documentation ¶
Index ¶
- type ExecExtraItem
- func NewExecExtraItem(field, dbType string) *ExecExtraItem
- func WithDataExecExtra(items []*ExecExtraItem) []*ExecExtraItem
- func WithLevelExecExtra(items []*ExecExtraItem) []*ExecExtraItem
- func WithLogtimeExecExtra(items []*ExecExtraItem) []*ExecExtraItem
- func WithMessageExecExtra(items []*ExecExtraItem) []*ExecExtraItem
- type Execer
- type FilterHandle
- type Hook
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecExtraItem ¶
ExecExtraItem extra item
func NewExecExtraItem ¶
func NewExecExtraItem(field, dbType string) *ExecExtraItem
NewExecExtraItem create extra item instance
func WithDataExecExtra ¶
func WithDataExecExtra(items []*ExecExtraItem) []*ExecExtraItem
func WithLevelExecExtra ¶
func WithLevelExecExtra(items []*ExecExtraItem) []*ExecExtraItem
func WithLogtimeExecExtra ¶
func WithLogtimeExecExtra(items []*ExecExtraItem) []*ExecExtraItem
func WithMessageExecExtra ¶
func WithMessageExecExtra(items []*ExecExtraItem) []*ExecExtraItem
type FilterHandle ¶
FilterHandle a filter handler
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
Hook to send logs to a mysql database
func NewWithExtra ¶
DefaultWithExtra create a default mysql hook with extra items
Click to show internal directories.
Click to hide internal directories.