cmddto

package
v1.0.2-dev-10 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectBulkDoc

func InjectBulkDoc(s *BulkDoc)

func InjectCmdDto

func InjectCmdDto(s *CmdDto)

func InjectScriptDto

func InjectScriptDto(s *ScriptDto)

func LoadBulkDoc

func LoadBulkDoc() baseiface.ISingleton

func LoadCmdDto

func LoadCmdDto() baseiface.ISingleton

func LoadScriptDto

func LoadScriptDto() baseiface.ISingleton

Types

type BulkDoc

type BulkDoc struct {
	basedto.BaseEntity
	Id  string
	Doc map[string]interface{}
}

func FindBeanBulkDoc

func FindBeanBulkDoc() *BulkDoc

func NewBulkDoc

func NewBulkDoc() *BulkDoc

type BulkStru

type BulkStru struct {
	basedto.BaseEntity
	Id  string
	Doc any
}

func NewBulkStru

func NewBulkStru() *BulkStru

type CmdDto

type CmdDto struct {
	basedto.BaseEntity

	esdto.ReqDto
	Script    *ScriptDto             `json:"script"`
	Refresh   string                 `json:"refresh"`
	Data      interface{}            `json:"data"`
	Doc       map[string]interface{} `json:"params"`
	BulkDocs  []*BulkDoc
	BulkStrus []*BulkStru
}

func FindBeanCmdDto

func FindBeanCmdDto() *CmdDto

func NewCmdDto

func NewCmdDto() *CmdDto

func (*CmdDto) AddBulkDoc

func (self *CmdDto) AddBulkDoc(bulkDoc *BulkDoc)

func (*CmdDto) AddBulkStru

func (self *CmdDto) AddBulkStru(bulkDoc *BulkStru)

func (*CmdDto) AddDoc

func (self *CmdDto) AddDoc(id string, doc map[string]any)

func (*CmdDto) AddStru

func (self *CmdDto) AddStru(id string, doc any)

func (*CmdDto) NewScript

func (self *CmdDto) NewScript() *elastic.Script

func (*CmdDto) RefreshStr

func (self *CmdDto) RefreshStr() string

func (*CmdDto) ScriptAs

func (self *CmdDto) ScriptAs(updateClause string, params map[string]interface{}) string

type ScriptDto

type ScriptDto struct {
	basedto.BaseEntity
	UpdateClause string
	Params       map[string]interface{}
}

func FindBeanScriptDto

func FindBeanScriptDto() *ScriptDto

func NewScriptDto

func NewScriptDto() *ScriptDto

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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