Documentation ¶
Index ¶
- func InjectGoElastic(s *GoElastic)
- func LoadGoElastic() baseiface.ISingleton
- type GoElastic
- func (self *GoElastic) Client() *elasticsearch.Client
- func (self *GoElastic) Init()
- func (self *GoElastic) Query(req *pagereq.QueryRequest) *pagees.PageEsResult
- func (self *GoElastic) Search(o ...func(*esapi.SearchRequest)) (*esapi.Response, error)
- func (self *GoElastic) Search2Map(o ...func(*esapi.SearchRequest)) (map[string]any, error)
- func (self *GoElastic) Search2PageEsResult(o ...func(*esapi.SearchRequest)) *pagees.PageEsResult
- func (self *GoElastic) Search2SearchResult(o ...func(*esapi.SearchRequest)) (*elastic.SearchResult, error)
- func (self *GoElastic) SetClient(client *elasticsearch.Client)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectGoElastic ¶
func InjectGoElastic(s *GoElastic)
func LoadGoElastic ¶
func LoadGoElastic() baseiface.ISingleton
Types ¶
type GoElastic ¶
type GoElastic struct { basedto.BaseEntitySingle Opened bool `json:"opened"` Info string `json:"init"` // contains filtered or unexported fields }
func NewGoElasticCli ¶
func NewGoElasticCli() *GoElastic
func (*GoElastic) Query ¶
func (self *GoElastic) Query(req *pagereq.QueryRequest) *pagees.PageEsResult
func (*GoElastic) Search2Map ¶
func (*GoElastic) Search2PageEsResult ¶
func (self *GoElastic) Search2PageEsResult(o ...func(*esapi.SearchRequest)) *pagees.PageEsResult
func (*GoElastic) Search2SearchResult ¶
func (self *GoElastic) Search2SearchResult(o ...func(*esapi.SearchRequest)) (*elastic.SearchResult, error)
Click to show internal directories.
Click to hide internal directories.