Documentation
¶
Index ¶
- Constants
- Variables
- func GetLootCredentialDir() string
- func GetLootDir() string
- func GetLootFileDir() string
- type LocalBackend
- 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
- type 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)
Constants ¶
View Source
const (
MaxLootSize = 2 * 1024 * 1024 * 1024 // 2Gb, shouldn't matter the gRPC message size limit is 2Gb
)
Variables ¶
View Source
var ( ErrInvalidLootID = errors.New("invalid loot id") ErrLootNotFound = errors.New("loot not found") )
Functions ¶
func GetLootCredentialDir ¶
func GetLootCredentialDir() string
func GetLootDir ¶
func GetLootDir() string
func GetLootFileDir ¶
func GetLootFileDir() string
Types ¶
type LocalBackend ¶
func (*LocalBackend) All ¶
func (l *LocalBackend) All() *clientpb.AllLoot
func (*LocalBackend) AllOf ¶
func (l *LocalBackend) AllOf(lootType clientpb.LootType) *clientpb.AllLoot
func (*LocalBackend) GetContent ¶
func (*LocalBackend) Rm ¶
func (l *LocalBackend) Rm(lootID string) error
type LootBackend ¶
type LootStore ¶
type LootStore struct {
// contains filtered or unexported fields
}
func GetLootStore ¶
func GetLootStore() *LootStore
func (*LootStore) GetContent ¶
Click to show internal directories.
Click to hide internal directories.