Documentation ¶
Index ¶
- func ErrorJSON(ctx *fasthttp.RequestCtx, message string, id int)
- func GetEndpointByID(ctx *fasthttp.RequestCtx)
- func GetEndpoints(ctx *fasthttp.RequestCtx)
- func GetTasks(ctx *fasthttp.RequestCtx)
- func GetTasksOfID(ctx *fasthttp.RequestCtx)
- func PostEndpoint(ctx *fasthttp.RequestCtx)
- func PostTasks(ctx *fasthttp.RequestCtx)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorJSON ¶
func ErrorJSON(ctx *fasthttp.RequestCtx, message string, id int)
ErrorJSON is a utility function to send an error from Json to the requester.
func GetEndpointByID ¶
func GetEndpointByID(ctx *fasthttp.RequestCtx)
GetEndpointByID returns a specific endpoint based on id.
func GetEndpoints ¶
func GetEndpoints(ctx *fasthttp.RequestCtx)
GetEndpoints returns all endpoints in a json format.
func GetTasks ¶
func GetTasks(ctx *fasthttp.RequestCtx)
GetTasks gets all tasks and sends it over HTTP
func GetTasksOfID ¶
func GetTasksOfID(ctx *fasthttp.RequestCtx)
GetTasksOfID gets tasks for the user and sends it over HTTP
func PostEndpoint ¶
func PostEndpoint(ctx *fasthttp.RequestCtx)
PostEndpoint inserts a new endpoint if valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.