Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewESClient ¶
func NewESClient(urls []string, sniff bool, options ...elastic.ClientOptionFunc) (*elastic.Client, error)
NewESClient 创建新的 elasticsearch 连接客户端 discovery.type=single-node 時設置 elastic.SetSniff(false) 其他选项参考:https://pkg.go.dev/github.com/olivere/elastic?tab=doc#example-NewClient-ManyOptions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.