Documentation ¶ Index ¶ type Es func New(options map[string]any) (esS *Es, err error) func (esS *Es) C() *elastic.Client func (esS *Es) Ping() (*elastic.PingResult, int, error) func (esS *Es) SetConfig(options map[string]any) (err error) type Options func (o *Options) String() (data string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Es ¶ type Es struct { Client *elastic.Client Options *Options } func New ¶ func New(options map[string]any) (esS *Es, err error) New create new mongodb func (*Es) C ¶ func (esS *Es) C() *elastic.Client func (*Es) Ping ¶ func (esS *Es) Ping() (*elastic.PingResult, int, error) func (*Es) SetConfig ¶ func (esS *Es) SetConfig(options map[string]any) (err error) SetConfig set config type Options ¶ type Options struct { Url string `mapstructure:",omitempty"` } func (*Options) String ¶ func (o *Options) String() (data string) Source Files ¶ View all Source files es.go Click to show internal directories. Click to hide internal directories.