Documentation ¶
Index ¶
- Variables
- type Entity
- type EntityId
- type EntityItem
- type EntityItemList
- func (m *EntityItemList) GetByAttributes(attrNames []string, attrValues []string) []EntityId
- func (m *EntityItemList) GetById(id EntityId) (*EntityItem, error)
- func (m *EntityItemList) ItemsCount() int
- func (m *EntityItemList) NewItem(id ...EntityId) (*EntityItem, error)
- func (m *EntityItemList) ReadFrom(db kvdb.KeyValueDB, key string) error
- func (m *EntityItemList) RemoveItem(id EntityId) (*EntityItem, error)
- func (m *EntityItemList) WriteTo(db kvdb.KeyValueDB, key string) error
- type EntityList
- type GetEntitiesByAttributesParams
- type GetEntityAttributeParams
- type SetEntityAttributeParams
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type EntityItem ¶
type EntityItem struct {
// contains filtered or unexported fields
}
func (*EntityItem) GetAttribute ¶
func (e *EntityItem) GetAttribute(attrName string, defValue ...string) string
func (*EntityItem) Id ¶
func (e *EntityItem) Id() EntityId
func (*EntityItem) SetAttribute ¶
func (e *EntityItem) SetAttribute(attrName string, value string)
type EntityItemList ¶
type EntityItemList struct {
// contains filtered or unexported fields
}
func NewEntityItemList ¶
func NewEntityItemList() *EntityItemList
func (*EntityItemList) GetByAttributes ¶
func (m *EntityItemList) GetByAttributes(attrNames []string, attrValues []string) []EntityId
func (*EntityItemList) GetById ¶
func (m *EntityItemList) GetById(id EntityId) (*EntityItem, error)
func (*EntityItemList) ItemsCount ¶
func (m *EntityItemList) ItemsCount() int
func (*EntityItemList) NewItem ¶
func (m *EntityItemList) NewItem(id ...EntityId) (*EntityItem, error)
func (*EntityItemList) ReadFrom ¶
func (m *EntityItemList) ReadFrom(db kvdb.KeyValueDB, key string) error
func (*EntityItemList) RemoveItem ¶
func (m *EntityItemList) RemoveItem(id EntityId) (*EntityItem, error)
func (*EntityItemList) WriteTo ¶
func (m *EntityItemList) WriteTo(db kvdb.KeyValueDB, key string) error
type EntityList ¶
type GetEntitiesByAttributesParams ¶
type GetEntityAttributeParams ¶
Click to show internal directories.
Click to hide internal directories.