Documentation
¶
Index ¶
Constants ¶
View Source
const MegaByte int64 = 10 << 10
Variables ¶
View Source
var ErrDbPasswordMissing = errors.New("database password not given or found (usage: --dbpass <password> or DBPASS=<password>)")
View Source
var ErrDbUsernameMissing = errors.New("database username not given or found (usage: --dbuser <user> or DBUSER=<user>)")
Functions ¶
This section is empty.
Types ¶
type APIError ¶
func InternalServerError ¶
TODO determine if we actually need to return a pointer
func NewAPIError ¶
type APIServer ¶
type APIServer struct {
// contains filtered or unexported fields
}
func NewAPIServer ¶
func (*APIServer) StartRouter ¶
func (a *APIServer) StartRouter()
StartRouter starts up a Gin router for the API
Click to show internal directories.
Click to hide internal directories.