Documentation ¶
Index ¶
- func NewStore(tableName string) (store.KeyValue, error)
- type KeyValueStore
- func (s *KeyValueStore) Delete(key string) error
- func (s *KeyValueStore) Get(key string) (interface{}, error)
- func (s *KeyValueStore) GetAll() ([]*models.KeyValuePair, error)
- func (s *KeyValueStore) Put(pair *models.KeyValuePair) error
- func (s *KeyValueStore) PutMany(pairs []*models.KeyValuePair) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyValueStore ¶
type KeyValueStore struct {
// contains filtered or unexported fields
}
func (*KeyValueStore) Delete ¶
func (s *KeyValueStore) Delete(key string) error
func (*KeyValueStore) Get ¶
func (s *KeyValueStore) Get(key string) (interface{}, error)
func (*KeyValueStore) GetAll ¶
func (s *KeyValueStore) GetAll() ([]*models.KeyValuePair, error)
func (*KeyValueStore) Put ¶
func (s *KeyValueStore) Put(pair *models.KeyValuePair) error
func (*KeyValueStore) PutMany ¶
func (s *KeyValueStore) PutMany(pairs []*models.KeyValuePair) error
Click to show internal directories.
Click to hide internal directories.