Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIndex ¶
func CreateIndex(client *elasticsearch.Client) error
func IndexString ¶
func IndexString() string
Types ¶
type ExecCloser ¶
ExecCloser 将logrus条目写入数据库并关闭数据库
func NewExec ¶
func NewExec(client *elasticsearch.Client) ExecCloser
NewExec create an exec instance
func NewExecWithURL ¶
func NewExecWithURL(client *elasticsearch.Client) ExecCloser
NewExecWithURL create an exec instance
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
Hook 将日志发送到 es 数据库
func Default ¶
func Default(client *elasticsearch.Client, opts ...Option) *Hook
Default create a default es hook
func DefaultWithURL ¶
func DefaultWithURL(client *elasticsearch.Client, opts ...Option) *Hook
DefaultWithURL create a default es hook
Click to show internal directories.
Click to hide internal directories.