scope

package
Version: v2.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL