simple

package
v0.0.0-...-ef80819 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageInvalidKeyError

type StorageInvalidKeyError struct {
	Valid   reflect.Type
	Invalid reflect.Type
}

StorageInvalidKeyError means type of key is invalid for storage

func (*StorageInvalidKeyError) Error

func (e *StorageInvalidKeyError) Error() string

type StorageInvalidValueError

type StorageInvalidValueError struct {
	Valid   reflect.Type
	Invalid reflect.Type
}

StorageInvalidValueError means type of value is invalid for storage

func (*StorageInvalidValueError) Error

func (e *StorageInvalidValueError) Error() string

type StorageWrapper

type StorageWrapper struct {
	transparent.BackendStorage
}

func (*StorageWrapper) Add

func (f *StorageWrapper) Add(k interface{}, v interface{}) error

Add is file write

func (*StorageWrapper) Get

func (f *StorageWrapper) Get(k interface{}) (interface{}, error)

Get is file read

func (*StorageWrapper) Remove

func (f *StorageWrapper) Remove(k interface{}) error

Remove is file unlink

type Validator

type Validator struct {
}

Validator is

func (*Validator) ValidateKey

func (s *Validator) ValidateKey(k interface{}) (string, error)

func (*Validator) ValidateValue

func (s *Validator) ValidateValue(v interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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