Documentation ¶
Index ¶
- type App
- func (a *App) CreateTask(w http.ResponseWriter, r *http.Request)
- func (a *App) DeleteTask(w http.ResponseWriter, r *http.Request)
- func (a *App) GetTasks(w http.ResponseWriter, r *http.Request)
- func (a *App) Initialize(DbHost, DbPort, DbUser, DbName, DbPassword string)
- func (a *App) RunServer()
- func (a *App) ToggleTaskStatus(w http.ResponseWriter, r *http.Request)
- func (a *App) UserSignUp(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
func (*App) CreateTask ¶
func (a *App) CreateTask(w http.ResponseWriter, r *http.Request)
CreateTask parses request, validates data and saves the new task
func (*App) DeleteTask ¶
func (a *App) DeleteTask(w http.ResponseWriter, r *http.Request)
func (*App) Initialize ¶
Initialize connect to the database and wire up routes
func (*App) ToggleTaskStatus ¶
func (a *App) ToggleTaskStatus(w http.ResponseWriter, r *http.Request)
func (*App) UserSignUp ¶
func (a *App) UserSignUp(w http.ResponseWriter, r *http.Request)
UserSignUp controller for creating new users
Click to show internal directories.
Click to hide internal directories.