Documentation ¶
Index ¶
Constants ¶
View Source
const (
ApiVersionKey contextKey = "apiVersion"
)
Variables ¶
This section is empty.
Functions ¶
func JSONResponse ¶
func JSONResponse(w http.ResponseWriter, statusCode int, data interface{})
Types ¶
type EnvConfig ¶
type EnvConfig struct { ServerPort int `env:"PORT,required"` DbHost string `env:"DB_HOST,required"` DbUser string `env:"DB_USER,required"` DbName string `env:"DB_NAME,required"` DbPort int `env:"DB_PORT,required"` DbPassword string `env:"DB_PASSWORD,required"` }
func LoadConnectionConfig ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.