handler

package
v0.0.0-...-c534d4e Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Error   = "error"
	Message = "message"
)

Variables

This section is empty.

Functions

func RouteLogin

func RouteLogin(e *echo.Echo, storage Storage)

RouteLogin .

func RoutePerson

func RoutePerson(e *echo.Echo, storage Storage)

RouterPerson .

Types

type Storage

type Storage interface {
	Create(person *model.Person) error
	Update(ID int, person *model.Person) error
	Delete(ID int) error
	GetByID(ID int) (model.Person, error)
	GetAll() (model.Persons, error)
}

Storage interface to be implemented by all the handlers that need to interact with memory

Jump to

Keyboard shortcuts

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