store

package
v0.0.0-...-e82adf8 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: MIT Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(u *url.URL) (bool, error)

func Register

func Register(name string, create CreateFn, open OpenFn)

Types

type CreateFn

type CreateFn func(u *url.URL) (bool, error)

type OpenFn

type OpenFn func(u *url.URL) (Store, error)

type Store

type Store interface {
	Get(id string) ([]byte, error)
	Put(id string, data []byte) error
	Delete(id string) error
	Close() error
}

func Open

func Open(u *url.URL) (Store, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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