Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Environment string Logger models.Logger HTTPServer HTTPServerConfig HTTPRouter HTTPRouterConfig Database DatabaseConfig }
type DatabaseConfig ¶
type HTTPRouterConfig ¶
type HTTPServerConfig ¶
type HTTPServerConfig struct {
Port int
}
type TodoItem ¶
type TodoItem struct { ID int `json:"id" pg:"id,pk"` Todo string `json:"todo" pg:"todo"` CreatedOn time.Time `json:"created_on" pg:"created_on"` // contains filtered or unexported fields }
TodoItem model
type TodoPostRequest ¶
type TodoPostRequest struct {
Todo string `json:"todo"`
}
TodoPostRequest request model to POST
func (*TodoPostRequest) IsValid ¶
func (tReq *TodoPostRequest) IsValid() error
type TodoPostResponse ¶
type TodoPostResponse struct {
ID int `json:"id"`
}
TodoPostResponse response model to POST
Click to show internal directories.
Click to hide internal directories.