client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

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

Types

type LoggerAdapter

type LoggerAdapter struct{}

func (*LoggerAdapter) LogRoundTrip

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

func (*LoggerAdapter) RequestBodyEnabled

func (l *LoggerAdapter) RequestBodyEnabled() bool

func (*LoggerAdapter) ResponseBodyEnabled

func (l *LoggerAdapter) ResponseBodyEnabled() bool

type Transporter

type Transporter interface {
	RoundTrip(req *http.Request) (*http.Response, error)
}

func NewTransport

func NewTransport(cfg config.Elasticsearch) Transporter

Jump to

Keyboard shortcuts

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