package
3.0.2+incompatible
Repository: https://github.com/codyguo/semaphore.git
Documentation: pkg.go.dev

# Functions

AddTask inserts a task into the database and returns a header or returns error.
GetAllTasks returns all tasks for the current project.
GetLastTasks returns the hundred most recent tasks.
GetTask returns a task based on its id.
GetTaskMiddleware is middleware that gets a task by id and sets the context to it or panics.
GetTaskOutput returns the logged task output by id and writes it as json or returns error.
GetTasksList returns a list of tasks for the current project in desc order to limit or error.
Readln reads from the pipe.
RemoveTask removes a task from the database.
StartRunner begins the task pool, used as a goroutine.

# Structs

Alert represents an alert that will be templated and sent to the appropriate service.