webfacade

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MulanPSL-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebFacade

type WebFacade[T baseindex.IndexMapping] struct {
	*esreq.WebRequest[T]
	Cmd  *esreq.CmdRequest[T]
	Meta *esreq.MetaRequest[T]
}

func Default

func Default[T baseindex.IndexMapping]() *WebFacade[T]

Default DefaultOf

func DefaultAs

func DefaultAs[T baseindex.IndexMapping](o T) *WebFacade[T]

func DefaultAsOf

func DefaultAsOf[T baseindex.IndexMapping](o T, q elastic.Query) *WebFacade[T]

func DefaultOf

func DefaultOf[T baseindex.IndexMapping](q elastic.Query) *WebFacade[T]

func (*WebFacade[T]) BulkCreate

func (self *WebFacade[T]) BulkCreate(docs ...[]*cmddto.BulkDoc) *basedto.IchubResult

func (*WebFacade[T]) BulkDelete

func (self *WebFacade[T]) BulkDelete(ids ...any) *basedto.IchubResult

func (*WebFacade[T]) BulkIndex

func (self *WebFacade[T]) BulkIndex(docs ...[]*cmddto.BulkDoc) *basedto.IchubResult

func (*WebFacade[T]) BulkUpdate

func (self *WebFacade[T]) BulkUpdate(docs ...[]*cmddto.BulkDoc) *basedto.IchubResult

func (*WebFacade[T]) BulkUpsert

func (self *WebFacade[T]) BulkUpsert() *basedto.IchubResult

func (*WebFacade[T]) CmsExistId

func (self *WebFacade[T]) CmsExistId(id string) *page.PageResult

func (*WebFacade[T]) CreateIndexIfNotExist

func (self *WebFacade[T]) CreateIndexIfNotExist() *basedto.IchubResult

func (*WebFacade[T]) CreateIndexesIfNotExist

func (self *WebFacade[T]) CreateIndexesIfNotExist() *basedto.IchubResult

func (*WebFacade[T]) Delete

func (self *WebFacade[T]) Delete(id any) *basedto.IchubResult

func (*WebFacade[T]) DeleteByQuery

func (self *WebFacade[T]) DeleteByQuery() *basedto.IchubResult

func (*WebFacade[T]) InitIndexName

func (self *WebFacade[T]) InitIndexName() *WebFacade[T]

func (*WebFacade[T]) MetaCreateIndex

func (self *WebFacade[T]) MetaCreateIndex() *basedto.IchubResult

func (*WebFacade[T]) MetaDropIndex

func (self *WebFacade[T]) MetaDropIndex() *basedto.IchubResult

func (*WebFacade[T]) MetaGetMapping

func (self *WebFacade[T]) MetaGetMapping() *basedto.IchubResult

func (*WebFacade[T]) MetaIndexExists

func (self *WebFacade[T]) MetaIndexExists() *basedto.IchubResult

func (*WebFacade[T]) QueryResult

func (self *WebFacade[T]) QueryResult() *pagemodel.PageResult[T]

func (*WebFacade[T]) Save

func (self *WebFacade[T]) Save(id any, doc map[string]any) *basedto.IchubResult

func (*WebFacade[T]) SaveIndex

func (self *WebFacade[T]) SaveIndex(indexTable baseindex.IndexIface) *basedto.IchubResult

func (*WebFacade[T]) SaveStru

func (self *WebFacade[T]) SaveStru(id any, stru any) *basedto.IchubResult

func (*WebFacade[T]) UpdataParam2Script

func (self *WebFacade[T]) UpdataParam2Script(fieldAsParams map[string]interface{}) string

func (*WebFacade[T]) Update

func (self *WebFacade[T]) Update(ids any, doc map[string]any) *basedto.IchubResult

func (*WebFacade[T]) Update2Err

func (self *WebFacade[T]) Update2Err(id any, doc map[string]any) error

func (*WebFacade[T]) UpdateByQuery

func (self *WebFacade[T]) UpdateByQuery(updateClause string, fieldParams map[string]any) *basedto.IchubResult

func (*WebFacade[T]) UpdateByQueryParam

func (self *WebFacade[T]) UpdateByQueryParam(fieldAsParams map[string]any) *basedto.IchubResult

func (*WebFacade[T]) UpdateIndex

func (self *WebFacade[T]) UpdateIndex(doc baseindex.IndexIface) *basedto.IchubResult

func (*WebFacade[T]) UpdateStru

func (self *WebFacade[T]) UpdateStru(ids any, doc any) *basedto.IchubResult

func (*WebFacade[T]) WebSaveIndex

func (self *WebFacade[T]) WebSaveIndex(id any) *basedto.IchubResult

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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