Documentation ¶
Index ¶
- type KeyedStorage
- type Storage
- func (s *Storage) HardwareHash() string
- func (s *Storage) HardwareWithBenchmarks() *hardware.Hardware
- func (s *Storage) Load(key string, value interface{}) (bool, error)
- func (s *Storage) PassedBenchmarks() map[uint64]bool
- func (s *Storage) Remove(key string) (bool, error)
- func (s *Storage) Save(key string, value interface{}) error
- func (s *Storage) SetHardwareHash(v string) error
- func (s *Storage) SetHardwareWithBenchmarks(hw *hardware.Hardware) error
- func (s *Storage) SetPassedBenchmarks(v map[uint64]bool) error
- type StorageConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyedStorage ¶
type KeyedStorage struct {
// contains filtered or unexported fields
}
func NewKeyedStorage ¶
func NewKeyedStorage(key string, storage *Storage) *KeyedStorage
func (*KeyedStorage) Load ¶
func (m *KeyedStorage) Load(value interface{}) (bool, error)
func (*KeyedStorage) Save ¶
func (m *KeyedStorage) Save(value interface{}) error
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) HardwareHash ¶
func (*Storage) HardwareWithBenchmarks ¶
func (*Storage) PassedBenchmarks ¶
func (*Storage) SetHardwareHash ¶
func (*Storage) SetHardwareWithBenchmarks ¶
type StorageConfig ¶
Click to show internal directories.
Click to hide internal directories.