elasticsearch

package
v2.8.13 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const MaxContentLength = 1 << 16

MaxContentLength ...

Variables

This section is empty.

Functions

func ESTraceServerInterceptor added in v2.8.13

func ESTraceServerInterceptor(DisableMetric, DisableTrace bool, Addr string) *http.Client

ESTraceServerInterceptor ...

Types

type Client

type Client struct {
	*elastic.Client
	*Config
}

Client --

func NewClient

func NewClient(config *Config) *Client

NewClient ...

type Config added in v2.8.13

type Config struct {
	URL           []string
	Username      string //账号 root
	Password      string //密码
	DisableMetric bool   // 关闭指标采集
	DisableTrace  bool   // 关闭链路追踪
}

Config ...

type ESTracedTransport added in v2.8.13

type ESTracedTransport struct {
	*http.Transport
	DisableMetric bool
	DisableTrace  bool
	Addr          string
}

ESTracedTransport ...

func (*ESTracedTransport) RoundTrip added in v2.8.13

func (t *ESTracedTransport) RoundTrip(r *http.Request) (resp *http.Response, err error)

RoundTrip ...

Jump to

Keyboard shortcuts

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