Documentation
¶
Index ¶
Constants ¶
View Source
const ( Error = "error" Message = "message" )
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.