backend

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Write(key string) error
	Read(key string) bool
	Erase(key string) error
}

type DiskvBackend

type DiskvBackend struct {
	// contains filtered or unexported fields
}

func NewDiskvBackend

func NewDiskvBackend(baseDir string) *DiskvBackend

func (*DiskvBackend) Erase

func (be *DiskvBackend) Erase(key string) error

func (*DiskvBackend) Read

func (be *DiskvBackend) Read(key string) bool

func (*DiskvBackend) Write

func (be *DiskvBackend) Write(key string) error

Jump to

Keyboard shortcuts

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