package
Version:
v1.2.49
Opens a new window with list of versions in this module.
Published: Aug 16, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
go-es
目前:v7
https://github.com/olivere/elastic
官方:v7 v8
https://github.com/elastic/go-elasticsearch
Documentation
¶
func ESClient() *elastic.Client
func Init(conf Config, options ...elastic.ClientOptionFunc) (err error)
func New(conf Config, options ...elastic.ClientOptionFunc) (cli *client, err error)
type Config struct {
Addr string `json:"addr,optional" yaml:"Addr,optional"`
User string `json:"user,optional" yaml:"User,optional"`
Password string `json:"password,optional" yaml:"Password,optional"`
EnableLog bool `json:"enableLog,optional" yaml:"EnableLog,optional"`
}
type Pagination struct {
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.