ves

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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