chrono

package
v0.0.0-...-41291ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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.

func PostTasks

func PostTasks(ctx *fasthttp.RequestCtx)

PostTasks queues a new task to the list.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL