datastore

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrNotFound

func IsErrNotFound(err error) bool

Types

type RouteStore

type RouteStore interface {
	Close() error
	Save(ctx context.Context, r *model.Route) error
	Query(ctx context.Context, r *model.Route) error
	QueryAll(ctx context.Context) ([]model.Route, error)
	Delete(ctx context.Context, r *model.Route) error
}

func NewSQLiteStore

func NewSQLiteStore(path string) (RouteStore, error)

Jump to

Keyboard shortcuts

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