backend

package
v0.0.0-...-3c7fcfe Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 2 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 {
	Close() error
	Get(ctx context.Context, id string) ([]byte, error)
	Put(ctx context.Context, key string, buf []byte) error
	Del(ctx context.Context, id string) error
	GetAll(ctx context.Context) (map[string]internal.Route, error)
	List(ctx context.Context, start string) (map[string]internal.Route, error)
	NextID(ctx context.Context) (uint64, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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