Documentation ¶
Index ¶
- func AddTask(w http.ResponseWriter, r *http.Request)
- func GetAllTasks(w http.ResponseWriter, r *http.Request)
- func GetLastTasks(w http.ResponseWriter, r *http.Request)
- func GetTask(w http.ResponseWriter, r *http.Request)
- func GetTaskMiddleware(w http.ResponseWriter, r *http.Request)
- func GetTaskOutput(w http.ResponseWriter, r *http.Request)
- func GetTasksList(w http.ResponseWriter, r *http.Request, limit uint64)
- func Readln(r *bufio.Reader) (string, error)
- func RemoveTask(w http.ResponseWriter, r *http.Request)
- func StartRunner()
- type Alert
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTask ¶
func AddTask(w http.ResponseWriter, r *http.Request)
AddTask inserts a task into the database and returns a header or panics
func GetAllTasks ¶
func GetAllTasks(w http.ResponseWriter, r *http.Request)
GetAllTasks returns all tasks for the current project
func GetLastTasks ¶
func GetLastTasks(w http.ResponseWriter, r *http.Request)
GetLastTasks returns the hundred most recent tasks
func GetTask ¶
func GetTask(w http.ResponseWriter, r *http.Request)
GetTask returns a task based on its id
func GetTaskMiddleware ¶
func GetTaskMiddleware(w http.ResponseWriter, r *http.Request)
GetTaskMiddleware is middleware that gets a task by id and sets the context to it or panics
func GetTaskOutput ¶
func GetTaskOutput(w http.ResponseWriter, r *http.Request)
GetTaskOutput returns the logged task output by id and writes it as json
func GetTasksList ¶
func GetTasksList(w http.ResponseWriter, r *http.Request, limit uint64)
GetTasksList returns a list of tasks for the current project in desc order to limit or panics
func RemoveTask ¶
func RemoveTask(w http.ResponseWriter, r *http.Request)
RemoveTask removes a task from the database
Types ¶
Click to show internal directories.
Click to hide internal directories.