store

package
v2.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexField

type IndexField struct {
	IndexFieldName           string      `json:"indexField"`
	IndexFieldValue          interface{} `json:"indexValue"`
	IndexFieldDataType       string      `json:"indexFieldType"`
	IndexFieldDateTimeFormat string      `json:"dateTimeFormat"`
}

type IndexFieldStore

type IndexFieldStore struct {
	IndexFieldValueList []*IndexField          `json:"indexFieldValueList"`
	IndexFieldValueMap  map[string]*IndexField `json:"indexFieldValueMap"`
}

type IndexFieldStoreWrap

type IndexFieldStoreWrap struct {
	// use mutex to modify value in future
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewIndexFieldWrap

func NewIndexFieldWrap(fields ...*IndexField) *IndexFieldStoreWrap

func (*IndexFieldStoreWrap) GetFieldList

func (wrap *IndexFieldStoreWrap) GetFieldList() []*IndexField

func (*IndexFieldStoreWrap) GetFieldMap

func (wrap *IndexFieldStoreWrap) GetFieldMap() map[string]*IndexField

func (*IndexFieldStoreWrap) GetStore

func (wrap *IndexFieldStoreWrap) GetStore() *IndexFieldStore

func (*IndexFieldStoreWrap) Init

func (wrap *IndexFieldStoreWrap) Init(fields ...*IndexField)

func (*IndexFieldStoreWrap) InitByStore

func (wrap *IndexFieldStoreWrap) InitByStore(store *IndexFieldStore)

func (*IndexFieldStoreWrap) LoadFromList

func (wrap *IndexFieldStoreWrap) LoadFromList()

func (*IndexFieldStoreWrap) UpdateByInput

func (wrap *IndexFieldStoreWrap) UpdateByInput(input map[string]interface{})

func (*IndexFieldStoreWrap) UpdateFieldValue

func (wrap *IndexFieldStoreWrap) UpdateFieldValue(name string, value interface{})

Jump to

Keyboard shortcuts

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