Documentation ¶
Index ¶
- func ParseTeamIDDBKey(s string) (teamID keybase1.TeamID, err error)
- type DiskStorageItem
- type FTLStorage
- func (s FTLStorage) ClearMem()
- func (s *FTLStorage) Get(mctx libkb.MetaContext, teamID keybase1.TeamID, public bool) (data *keybase1.FastTeamData, frozen bool, tombstoned bool)
- func (s FTLStorage) MemSize() int
- func (s *FTLStorage) Put(mctx libkb.MetaContext, state *keybase1.FastTeamData)
- func (s FTLStorage) Shutdown()
- type FTLStorageUpgrader
- type HiddenChainSupportState
- type HiddenStorage
- func (s HiddenStorage) ClearMem()
- func (s *HiddenStorage) Get(mctx libkb.MetaContext, teamID keybase1.TeamID, public bool) (state *keybase1.HiddenTeamChain, frozen bool, tombstoned bool)
- func (s HiddenStorage) MemSize() int
- func (s *HiddenStorage) Put(mctx libkb.MetaContext, state *keybase1.HiddenTeamChain)
- func (s HiddenStorage) Shutdown()
- type Merkle
- type Storage
- type SupportsHiddenFlagStorage
- func (s *SupportsHiddenFlagStorage) ClearEntryIfFalse(mctx libkb.MetaContext, teamID keybase1.TeamID)
- func (s SupportsHiddenFlagStorage) ClearMem()
- func (s *SupportsHiddenFlagStorage) Get(mctx libkb.MetaContext, teamID keybase1.TeamID) (state *HiddenChainSupportState)
- func (s SupportsHiddenFlagStorage) MemSize() int
- func (s *SupportsHiddenFlagStorage) Put(mctx libkb.MetaContext, state *HiddenChainSupportState)
- func (s SupportsHiddenFlagStorage) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiskStorageItem ¶
type FTLStorage ¶
type FTLStorage struct {
// contains filtered or unexported fields
}
FTLStorage stores FTL state to disk or memory.
func NewFTLStorage ¶
func NewFTLStorage(g *libkb.GlobalContext, upgrader FTLStorageUpgrader) *FTLStorage
func (*FTLStorage) Get ¶
func (s *FTLStorage) Get(mctx libkb.MetaContext, teamID keybase1.TeamID, public bool) (data *keybase1.FastTeamData, frozen bool, tombstoned bool)
Can return nil.
func (*FTLStorage) Put ¶
func (s *FTLStorage) Put(mctx libkb.MetaContext, state *keybase1.FastTeamData)
type FTLStorageUpgrader ¶
type FTLStorageUpgrader func(mctx libkb.MetaContext, state *keybase1.FastTeamData) (changed bool, err error)
type HiddenChainSupportState ¶
HiddenChainSupportState describes whether a team supports the hidden chain or not. This information is fetched from the server and cached.
func (*HiddenChainSupportState) ID ¶
func (ss *HiddenChainSupportState) ID() keybase1.TeamID
func (*HiddenChainSupportState) IsPublic ¶
func (ss *HiddenChainSupportState) IsPublic() bool
type HiddenStorage ¶
type HiddenStorage struct {
// contains filtered or unexported fields
}
HiddenStorage stores Hidden state to disk or memory.
func NewHiddenStorage ¶
func NewHiddenStorage(g *libkb.GlobalContext) *HiddenStorage
func (*HiddenStorage) Get ¶
func (s *HiddenStorage) Get(mctx libkb.MetaContext, teamID keybase1.TeamID, public bool) (state *keybase1.HiddenTeamChain, frozen bool, tombstoned bool)
Can return nil.
func (*HiddenStorage) Put ¶
func (s *HiddenStorage) Put(mctx libkb.MetaContext, state *keybase1.HiddenTeamChain)
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage stores TeamData's on memory and disk. Threadsafe. For the standard loader, which does a complete but slower load. Compare to FTLStorage which stores the Fast-loaded team state.
func NewStorage ¶
func NewStorage(g *libkb.GlobalContext) *Storage
type SupportsHiddenFlagStorage ¶
type SupportsHiddenFlagStorage struct {
// contains filtered or unexported fields
}
SupportsHiddenFlagStorage stores the supports_hidden_chain flag to disk and memory.
func NewSupportsHiddenFlagStorage ¶
func NewSupportsHiddenFlagStorage(g *libkb.GlobalContext) *SupportsHiddenFlagStorage
func (*SupportsHiddenFlagStorage) ClearEntryIfFalse ¶
func (s *SupportsHiddenFlagStorage) ClearEntryIfFalse(mctx libkb.MetaContext, teamID keybase1.TeamID)
func (SupportsHiddenFlagStorage) ClearMem ¶
func (s SupportsHiddenFlagStorage) ClearMem()
Clear the in-memory storage.
func (*SupportsHiddenFlagStorage) Get ¶
func (s *SupportsHiddenFlagStorage) Get(mctx libkb.MetaContext, teamID keybase1.TeamID) (state *HiddenChainSupportState)
Can return nil.
func (*SupportsHiddenFlagStorage) Put ¶
func (s *SupportsHiddenFlagStorage) Put(mctx libkb.MetaContext, state *HiddenChainSupportState)
Click to show internal directories.
Click to hide internal directories.