Documentation ¶
Index ¶
- func NewKnapsackKey(id string) (key.Key, error)
- type Dao
- func (d *Dao) AddFeatures(features map[int32]bool)
- func (d *Dao) AddItems(items map[int64]*pb.Item)
- func (d *Dao) GetAndDeleteChanges(incrItems, decrItems map[int64]*pb.Item, source string) *pb.KnapsackModify
- func (d *Dao) GetUid() string
- func (d *Dao) Init(id string, doc diface.ICollection, cache diface.ICache) error
- func (d *Dao) InitDefault(uid string) error
- func (d *Dao) RemoveItems(items map[int64]*pb.Item) error
- func (d *Dao) ToProto() *pb.Knapsack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dao ¶
type Dao struct { nosql.DocumentBase `bson:"-"` Data *pb.Knapsack `bson:"data"` // contains filtered or unexported fields }
func (*Dao) AddFeatures ¶
func (*Dao) GetAndDeleteChanges ¶
func (*Dao) InitDefault ¶
Click to show internal directories.
Click to hide internal directories.