client

package
v1.1.66 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewElasticClient

func NewElasticClient(config *config.Config) (*elasticsearch.Client, error)

Types

type LoggerAdapter added in v1.1.56

type LoggerAdapter struct {
	Logger logger.Logger
}

func (*LoggerAdapter) LogRoundTrip added in v1.1.56

func (l *LoggerAdapter) LogRoundTrip(req *http.Request, res *http.Response, err error, time time.Time, dur time.Duration) error

func (*LoggerAdapter) RequestBodyEnabled added in v1.1.56

func (l *LoggerAdapter) RequestBodyEnabled() bool

func (*LoggerAdapter) ResponseBodyEnabled added in v1.1.56

func (l *LoggerAdapter) ResponseBodyEnabled() bool

Jump to

Keyboard shortcuts

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