web

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const BTN_UNKNOWN = "<button class==\"btn btn-status btn-small btn-warning\">unknown</button>"

Variables

This section is empty.

Functions

func Run

func Run(ctx *Context)

Types

type Context

type Context struct {
	CfgPath string
	ReqChan chan scheduler.Request
	Config  config.Config
}

type Helpers

type Helpers struct {
}

func (Helpers) DisplayAgo

func (h Helpers) DisplayAgo(from time.Time) string

func (Helpers) DisplayBool

func (h Helpers) DisplayBool(val bool) string

func (Helpers) DisplayDuration

func (h Helpers) DisplayDuration(from time.Time, to time.Time) string

func (Helpers) DisplayRunStatusButton

func (h Helpers) DisplayRunStatusButton(status scheduler.RunStatus) template.HTML

func (Helpers) DisplayTime

func (h Helpers) DisplayTime(t time.Time) string

Jump to

Keyboard shortcuts

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