backends

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2016 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Load() ([]byte, error)
	Save([]byte) error
}

type DiskBackend

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

func NewDiskBackend

func NewDiskBackend(path *string) *DiskBackend

func (*DiskBackend) Load

func (db *DiskBackend) Load() ([]byte, error)

func (*DiskBackend) Save

func (db *DiskBackend) Save(data []byte) error

Jump to

Keyboard shortcuts

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