Documentation
¶
Index ¶
- type Repository
- func (r *Repository) Append(ctx context.Context, ns memory.Namespace, key string, value json.RawMessage) error
- func (r *Repository) Delete(ctx context.Context, ns memory.Namespace, key string) error
- func (r *Repository) Get(ctx context.Context, ns memory.Namespace, key string) (json.RawMessage, error)
- func (r *Repository) List(_ context.Context, _ memory.Namespace, _ string) ([]memory.Entry, error)
- func (r *Repository) Set(ctx context.Context, ns memory.Namespace, key string, value json.RawMessage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(dir string) (*Repository, error)
func (*Repository) Append ¶
func (r *Repository) Append(ctx context.Context, ns memory.Namespace, key string, value json.RawMessage) error
func (*Repository) Get ¶
func (r *Repository) Get(ctx context.Context, ns memory.Namespace, key string) (json.RawMessage, error)
Click to show internal directories.
Click to hide internal directories.