Documentation ¶
Overview ¶
Package memstore implements in-memory storage for atlas.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountStore ¶
type AccountStore struct {
// contains filtered or unexported fields
}
AccountStore stores accounts in-memory.
func NewAccountStore ¶
func NewAccountStore() *AccountStore
NewPdataStore creates a new MemoryPdataStore.
func (*AccountStore) GetAccount ¶
func (m *AccountStore) GetAccount(uid uint64) (*api0.Account, error)
func (*AccountStore) GetUIDsByUsername ¶
func (m *AccountStore) GetUIDsByUsername(username string) ([]uint64, error)
func (*AccountStore) SaveAccount ¶
func (m *AccountStore) SaveAccount(a *api0.Account) error
type PdataStore ¶
type PdataStore struct {
// contains filtered or unexported fields
}
PdataStore stores pdata in-memory, with optional compression.
func NewPdataStore ¶
func NewPdataStore(compress bool) *PdataStore
NewPdataStore creates a new MemoryPdataStore.
func (*PdataStore) GetPdataCached ¶
func (*PdataStore) GetPdataHash ¶
Click to show internal directories.
Click to hide internal directories.