package
Version:
v0.0.0-...-c4afa3a
Opens a new window with list of versions in this module.
Published: Jan 11, 2022
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewAPI(pgdb *pg.DB) *chi.Mux
type HomeRequest struct {
Price int64 `json:"price"`
Description string `json:"description"`
Address string `json:"address"`
AgentID int64 `json:"agent_id"`
}
type HomeResponse struct {
Success bool `json:"success"`
Error string `json:"error"`
Home *db.Home `json:"home"`
}
type HomesResponse struct {
Success bool `json:"success"`
Error string `json:"error"`
Homes []*db.Home `json:"homes"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.