elasticsearch

package
v1.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsHook

type EsHook struct {
	// contains filtered or unexported fields
}

func NewEsHook

func NewEsHook(options ...Option) *EsHook

func (*EsHook) Fire

func (es *EsHook) Fire(entry *logrus.Entry) error

func (*EsHook) Levels

func (es *EsHook) Levels() []logrus.Level

type IndexName

type IndexName func() string

type Option

type Option func(*Options)

func WithCmd

func WithCmd(cmd string) Option

func WithEsAddress

func WithEsAddress(url ...string) Option

func WithEsPassword

func WithEsPassword(password string) Option

func WithEsUser

func WithEsUser(user string) Option

func WithHealth

func WithHealth(health time.Duration) Option

func WithIndexName

func WithIndexName(indexName IndexName) Option

func WithLogLevel

func WithLogLevel(logLevel string) Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL