Documentation ¶
Index ¶
Constants ¶
View Source
const AppName = "B.O.B"
AppName is the name of the application.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { // Ok is true if the request was successful. Ok bool `json:"ok"` // Code the HTTP code for this response. Code int `json:"code"` // Message is the message returned by the API. Message string `json:"message"` }
APIResponse is the response returned by the API.
func (*APIResponse) Error ¶
func (ar *APIResponse) Error() string
Error makes it compatible with the `error` interface.
type Config ¶
type Config struct { Host string `long:"host" env:"HOST" default:"127.0.0.1" description:"Server host"` Port string `long:"port" env:"PORT" default:"8080" description:"Server port"` }
Config is the configuration for the web server.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.