Versions in this module Expand all Collapse all v1 v1.5.43 May 2, 2024 v1.5.42 May 2, 2024 Changes in this version + const MaxLootSize + var ErrInvalidLootID = errors.New("invalid loot id") + var ErrLootNotFound = errors.New("loot not found") + func GetLootCredentialDir() string + func GetLootDir() string + func GetLootFileDir() string + type LocalBackend struct + LocalCredDir string + LocalFileDir string + func (l *LocalBackend) Add(loot *clientpb.Loot) (*clientpb.Loot, error) + func (l *LocalBackend) All() *clientpb.AllLoot + func (l *LocalBackend) AllOf(lootType clientpb.LootType) *clientpb.AllLoot + func (l *LocalBackend) GetContent(lootID string, eager bool) (*clientpb.Loot, error) + func (l *LocalBackend) Rm(lootID string) error + func (l *LocalBackend) Update(lootReq *clientpb.Loot) (*clientpb.Loot, error) + type LootBackend interface + Add func(*clientpb.Loot) (*clientpb.Loot, error) + All func() *clientpb.AllLoot + AllOf func(clientpb.LootType) *clientpb.AllLoot + GetContent func(string, bool) (*clientpb.Loot, error) + Rm func(string) error + Update func(*clientpb.Loot) (*clientpb.Loot, error) + type LootStore struct + func GetLootStore() *LootStore + func (l *LootStore) Add(lootReq *clientpb.Loot) (*clientpb.Loot, error) + func (l *LootStore) All() *clientpb.AllLoot + func (l *LootStore) AllOf(lootType clientpb.LootType) *clientpb.AllLoot + func (l *LootStore) GetContent(lootID string, eager bool) (*clientpb.Loot, error) + func (l *LootStore) Rm(lootID string) error + func (l *LootStore) Update(lootReq *clientpb.Loot) (*clientpb.Loot, error)