db

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFound = errors.New("data not found")
)

Functions

This section is empty.

Types

type DB

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

func NewMemDB

func NewMemDB(configure *types.Configuration) (*DB, error)

func (*DB) GetRouteByID

func (db *DB) GetRouteByID(id string) (*types.Route, error)

func (*DB) GetServiceByID

func (db *DB) GetServiceByID(id string) (*types.Service, error)

Jump to

Keyboard shortcuts

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