elasticsearch

package
v1.0.79 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v1.0.65

func Add(name string, option Option)

func AddMap added in v1.0.65

func AddMap(name string, setting map[string]interface{})

func AddMapBatch added in v1.0.65

func AddMapBatch(batch map[string]interface{})

func GetKibanaUrl

func GetKibanaUrl(url, index string, querys []string) string

func GetKuery

func GetKuery(field, value string) string

func TypedV8 added in v1.0.69

func TypedV8(name string) *elasticsearch.TypedClient

TypedV8 使用V8 TypedAPI

func UseV7 added in v1.0.69

func UseV7(name string) *elasticsearch.Client

UseV7 使用V7

func UseV8 added in v1.0.69

func UseV8(name string) *elasticsearch.Client

UseV8 使用V8

Types

type Option added in v1.0.65

type Option struct {
	Address  []string `json:"address"`  //地址,字符串数组
	Username string   `json:"username"` //密码,默认空
	Password string   `json:"password"` //密码,默认空
}

Jump to

Keyboard shortcuts

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