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 Ping ¶
Ping is the handler for the GET /api/ping route. This will respond by a pong JSON message if the server is alive
func TimeTracking ¶
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
Click to show internal directories.
Click to hide internal directories.