web

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2013 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Templates = make(map[string]*template.Template)

Functions

func JSONListResult

func JSONListResult(url string, count int, data interface{}) *jsonListResult

func ReturnJSON

func ReturnJSON(w http.ResponseWriter, r *http.Request, resp interface{})

func Run

func Run(port int, documentRoot string)

Types

type ConveyorResult

type ConveyorResult struct {
	Conv  *queue.Conveyor
	Stats *queue.Statistic
	Tasks []*queue.Task
}

type ConveyorRowResult

type ConveyorRowResult struct {
	ID              string
	Status          string
	MaxRate         int32
	MaxConcurrent   int32
	TasksWaiting    int64
	TasksProcessing int64
}
type Header struct {
	Title string
}

type Page

type Page struct {
	Header Header
	Title  string
	Result interface{}
}

Jump to

Keyboard shortcuts

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