Versions in this module Expand all Collapse all v1 v1.3.0 Jun 19, 2014 v1.2.0 May 16, 2014 Changes in this version + var AdminCheckList map[string]HealthChecker + var AdminTaskList map[string]Tasker + func AddHealthCheck(name string, hc HealthChecker) + func AddTask(taskname string, t Tasker) + func Display(data ...interface{}) + func GetDisplayString(data ...interface{}) string + func MemProf() + func PrintGCSummary(w io.Writer) + func ProcessInput(input string, w io.Writer) + func StartCPUProfile() + func StartTask() + func StopCPUProfile() + func StopTask() + type HealthChecker interface + Check func() error + type MapSorter struct + Keys []string + Vals []Tasker + func NewMapSorter(m map[string]Tasker) *MapSorter + func (ms *MapSorter) Len() int + func (ms *MapSorter) Less(i, j int) bool + func (ms *MapSorter) Sort() + func (ms *MapSorter) Swap(i, j int) + type Schedule struct + Day uint64 + Hour uint64 + Minute uint64 + Month uint64 + Second uint64 + Week uint64 + func (s *Schedule) Next(t time.Time) time.Time + type Statistics struct + MaxTime time.Duration + MinTime time.Duration + RequestController string + RequestNum int64 + RequestUrl string + TotalTime time.Duration + type Task struct + DoFunc TaskFunc + ErrLimit int + Errlist []*taskerr + Next time.Time + Prev time.Time + Spec *Schedule + Taskname string + func NewTask(tname string, spec string, f TaskFunc) *Task + func (t *Task) SetCron(spec string) + func (tk *Task) GetNext() time.Time + func (tk *Task) GetPrev() time.Time + func (tk *Task) GetStatus() string + func (tk *Task) Run() error + func (tk *Task) SetNext(now time.Time) + func (tk *Task) SetPrev(now time.Time) + type TaskFunc func() error + type Tasker interface + GetNext func() time.Time + GetPrev func() time.Time + GetStatus func() string + Run func() error + SetNext func(time.Time) + SetPrev func(time.Time) + type UrlMap struct + LengthLimit int + var StatisticsMap *UrlMap + func (m *UrlMap) AddStatistics(requestMethod, requestUrl, requestController string, requesttime time.Duration) + func (m *UrlMap) GetMap(rw io.Writer)