Documentation ¶ Index ¶ func DeleteByID(id string) int func FindAll() ([]models.Person, error) func FindById(id string) (models.Person, error) func PatchById(id string, newData models.PatchRequest) (models.Person, error) func Post(p models.PostRequest) (string, error) func Shutdown() func Start() type DBData Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DeleteByID ¶ func DeleteByID(id string) int func FindAll ¶ func FindAll() ([]models.Person, error) func FindById ¶ func FindById(id string) (models.Person, error) func PatchById ¶ func PatchById(id string, newData models.PatchRequest) (models.Person, error) func Post ¶ func Post(p models.PostRequest) (string, error) func Shutdown ¶ added in v1.1.0 func Shutdown() func Start ¶ func Start() Types ¶ type DBData ¶ type DBData struct { ID string `json:"id"` DBB []byte `json:"dbb"` } Source Files ¶ View all Source files database.go Click to show internal directories. Click to hide internal directories.