Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Port string
}
Config currently only stores the port but could contain other things beneficial to the server
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server holds the Config (thus containing the port) and the Gin Engine the server runs
func NewServer ¶
NewServer instantiates the server with the config loaded in main.go It also sets up router groups and paths to actions
func (Server) CreationHandler ¶
CreationHandler creates new users
func (Server) DeleteHandler ¶
DeleteHandler soft delete users
func (Server) ListHandler ¶
ListHandler creates new users
func (Server) ReadyHandler ¶
ReadyHandler basic db ping check
func (Server) UpdateHandler ¶
UpdateHandler updates existing users
Click to show internal directories.
Click to hide internal directories.