client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientV6

func NewClientV6(isRead bool, addr *util.DBAddress, esClientOpts ...esv6.ClientOptionFunc) (*esv6.Client, error)

NewClientV6 快速实例化一个 elastic search 6.x API版本的 elastic.Client

func NewClientV7

func NewClientV7(isRead bool, addr *util.DBAddress, esClientOpts ...esv7.ClientOptionFunc) (*esv7.Client, error)

NewClientV7 快速实例化一个 elastic search 7.x API版本的 elastic.Client

Types

type Client

type Client interface {
	Do(request *http.Request) (*http.Response, error)        // Do olivere elastic v7 Doer 要求实现的方法
	RoundTrip(request *http.Request) (*http.Response, error) // RoundTrip olivere elastic v6 http.Client要求实现的方法
}

Client es database interface

Jump to

Keyboard shortcuts

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