Documentation ¶
Index ¶
- type InmemoryStore
- func (i *InmemoryStore) Backup() ([]byte, error)
- func (i *InmemoryStore) Close() error
- func (i *InmemoryStore) Get(ctx context.Context, key []byte) ([]byte, error)
- func (i *InmemoryStore) ListenToUpdates() <-chan *Update
- func (i *InmemoryStore) Restore(values []byte) error
- func (i *InmemoryStore) Set(ctx context.Context, key []byte, value interface{}) (err error)
- type Store
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InmemoryStore ¶
type InmemoryStore struct {
// contains filtered or unexported fields
}
func NewInmemoryStore ¶
func NewInmemoryStore() *InmemoryStore
func (*InmemoryStore) Backup ¶
func (i *InmemoryStore) Backup() ([]byte, error)
func (*InmemoryStore) Close ¶
func (i *InmemoryStore) Close() error
func (*InmemoryStore) ListenToUpdates ¶
func (i *InmemoryStore) ListenToUpdates() <-chan *Update
func (*InmemoryStore) Restore ¶
func (i *InmemoryStore) Restore(values []byte) error
Click to show internal directories.
Click to hide internal directories.