api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 License: GPL-2.0, GPL-3.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var API = mux.NewRouter()

API is the server mux for handling API calls

Functions

func QueryTask

func QueryTask(w http.ResponseWriter, r *http.Request) (string, error)

QueryTask returns the task name from the query of error if the query was not given

func SetJSON

func SetJSON(w http.ResponseWriter)

SetJSON sets the encoding in the http response to json

Types

type All

type All struct {
	Events    []*event.Event `json:"events"`
	EventTemp []*event.Event `json:"eventtemplates"`
	Tasks     []*task.Task   `json:"tasks"`
	Actions   []*unit.Unit   `json:"actions"`
}

All is a struct which contains all information in the application

Jump to

Keyboard shortcuts

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