backend

package
v0.0.0-...-f387205 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 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) (*internal.Route, error)
	Put(ctx context.Context, key string, route *internal.Route) error
	Del(ctx context.Context, id string) error
	GetAll(ctx context.Context) (map[string]internal.Route, error)
	List(ctx context.Context, start string) (internal.RouteIterator, 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