regstate

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError added in v0.7.7

func IsNotFoundError(err error) bool

func RemoveAll

func RemoveAll(root string, perUser bool) error

Types

type Key

type Key struct {
	registry.Key
	Name string
}

func Open

func Open(root string, perUser bool) (*Key, error)

func (*Key) Clear

func (k *Key) Clear(id, key string) error

func (*Key) Close

func (k *Key) Close() error

func (*Key) Create

func (k *Key) Create(id, key string, state interface{}) error

func (*Key) Enumerate

func (k *Key) Enumerate() ([]string, error)

func (*Key) Get

func (k *Key) Get(id, key string, state interface{}) error

func (*Key) Remove

func (k *Key) Remove(id string) error

func (*Key) Set

func (k *Key) Set(id, key string, state interface{}) error

type NoStateError

type NoStateError struct {
	ID  string
	Key string
}

func (*NoStateError) Error

func (err *NoStateError) Error() string

type NotFoundError

type NotFoundError struct {
	Id string
}

func (*NotFoundError) Error

func (err *NotFoundError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL