server

package
v0.0.0-...-13b7063 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JobInputs = make(chan *fetcher.TicketFetcherJob, viper.GetInt("nbWorkers"))

JobInputs is a channel used to communicate with the pool of TicketFetcherWorker

Functions

func LoadHTMLIndex

func LoadHTMLIndex() *template.Template

LoadHTMLIndex is sup

func Ping

func Ping(c *gin.Context)

Ping is the handler for the GET /api/ping route. This will respond by a pong JSON message if the server is alive

func Serve

func Serve()

Serve 'Em all

func ShowUI

func ShowUI(c *gin.Context)

ShowUI serves the main Book Keeper application page.

func TimeTracking

func TimeTracking(c *gin.Context)

TimeTracking is the handler for the GET /api/timetracking/* route. This will respond by rendering the timetracking html page.

Types

type ErrorResponse

type ErrorResponse struct {
	Error error `json:"error"`
}

ErrorResponse is a JSON struct to use when responding to the client

type PingResponse

type PingResponse struct {
	Pong string `json:"pong"`
}

PingResponse is a JSON struct to use when responding to the client

Jump to

Keyboard shortcuts

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