api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(e *echo.Echo) *echo.Echo

New is a helper function to create a new API server with a new database

func NewWithDB

func NewWithDB(e *echo.Echo, db *Database) *echo.Echo

NewWithDB is a helper function to create a new API server with a given database (useful for tests)

Types

type Database

type Database struct {
	User     string
	Password string
	Pets     []types.Pet
	People   []types.Person
	// contains filtered or unexported fields
}
var MyDB *Database

func NewDB

func NewDB() *Database

Jump to

Keyboard shortcuts

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