Documentation ¶
Index ¶
- Variables
- type GlobalsEntry
- type HashEntry
- type MemberEntry
- type ResolvesEntry
- type SavePointEntry
- type Storage
- func (s *Storage) AddHash(hash string, hentry *HashEntry) error
- func (s *Storage) AddMember(member string) error
- func (s *Storage) DeleteHash(hash string)
- func (s *Storage) Dump(w io.Writer)
- func (s *Storage) Globals() (*GlobalsEntry, error)
- func (s *Storage) Hash(hash string) (*HashEntry, error)
- func (s *Storage) HashUpdateIter(uf UpdateFunc) error
- func (s *Storage) Member(member string) (*MemberEntry, error)
- func (s *Storage) Members() ([]string, error)
- func (s *Storage) RemoveMember(member string) error
- func (s *Storage) SetGlobals(globals GlobalsEntry) error
- func (s *Storage) UpdateHash(hash string, hentry *HashEntry) error
- type UpdateFunc
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type GlobalsEntry ¶
type GlobalsEntry struct {
CurrentQuota uint
}
type MemberEntry ¶
type ResolvesEntry ¶
type ResolvesEntry struct {
Entries []string
}
type SavePointEntry ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage manages the application state
func (*Storage) DeleteHash ¶
func (*Storage) Globals ¶
func (s *Storage) Globals() (*GlobalsEntry, error)
Globals gets the globals from the db.
func (*Storage) HashUpdateIter ¶
func (s *Storage) HashUpdateIter(uf UpdateFunc) error
func (*Storage) Member ¶
func (s *Storage) Member(member string) (*MemberEntry, error)
Contract return a new contract.
func (*Storage) RemoveMember ¶
RemoveMember from the storage..
func (*Storage) SetGlobals ¶
func (s *Storage) SetGlobals(globals GlobalsEntry) error
SetGlobals in the storage.
type UpdateFunc ¶
Click to show internal directories.
Click to hide internal directories.