Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface {
Create(ctx context.Context, key string, value interface{}) error
Get(ctx context.Context, key string) (interface{}, error)
Update(ctx context.Context, key string, value interface{}) error
List(ctx context.Context, offset, limit uint64) ([]interface{}, uint64, error)
Delete(ctx context.Context, key string) error
}
func NewInMemoryStorage ¶
func NewInMemoryStorage() Storage
Click to show internal directories.
Click to hide internal directories.