Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindingUser ¶
type BindingUser struct {
ID string `uri:"id" binding:"required"`
}
BindingUser used to bind the user from a query
type Configuration ¶
type Configuration struct { Port string `json:"app_port" env:"APP_PORT"` DatabaseName string `json:"database_name" env:"DATABASE_NAME"` DatabasePassword string `json:"database_password" env:"DATABASE_PASSWORD"` DatabaseEndPoint string `json:"database_endpoint" env:"DATABASE_ENDPOINT"` DatabaseUser string `json:"database_user" env:"DATABASE_USER"` }
Configuration struct is used to load configuration from file or environnement
type DatabaseManager ¶
DatabaseManager struct to handle the database
type LoginPayload ¶
type LoginPayload struct { Username string `json:"username" binding:"required"` Password string `json:"password" binding:"required"` }
LoginPayload is the login model
type RegisterPayload ¶
type RegisterPayload struct { Username string `json:"username" binding:"required"` Password string `json:"password" binding:"required"` }
RegisterPayload is the register model
Click to show internal directories.
Click to hide internal directories.