Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope struct {
	store.Store
	// contains filtered or unexported fields

}

Scope extends the store, applying a prefix to each request

func NewScope

func NewScope(s store.Store, prefix string) Scope

NewScope returns an initialised scope

func (*Scope) Delete

func (s *Scope) Delete(key string, opts ...store.DeleteOption) error

func (*Scope) List

func (s *Scope) List(opts ...store.ListOption) ([]string, error)

func (*Scope) Options

func (s *Scope) Options() store.Options

func (*Scope) Read

func (s *Scope) Read(key string, opts ...store.ReadOption) ([]*store.Record, error)

func (*Scope) Write

func (s *Scope) Write(r *store.Record, opts ...store.WriteOption) error

Source Files