web

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion(w http.ResponseWriter, r *http.Request)

func InStringArray

func InStringArray(k string, ss []string) bool

func InitRouters

func InitRouters() (s *http.Server, err error)

func SubtractStringArray

func SubtractStringArray(a, b []string) (c []string)

返回存在于 a 且不存在于 b 中的元素集合

func UniqueStringArray

func UniqueStringArray(a []string) []string

Types

type BaseHandler

type BaseHandler struct {
	Handle func(w http.ResponseWriter, r *http.Request)
}

func (BaseHandler) ServeHTTP

func (b BaseHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ByProcTime

type ByProcTime []*cronsun.Process

func (ByProcTime) Len

func (a ByProcTime) Len() int

func (ByProcTime) Less

func (a ByProcTime) Less(i, j int) bool

func (ByProcTime) Swap

func (a ByProcTime) Swap(i, j int)

type Configuration

type Configuration struct{}

func (*Configuration) Configuratios

func (cnf *Configuration) Configuratios(w http.ResponseWriter, r *http.Request)

type Info

type Info struct{}

func (*Info) Overview

func (inf *Info) Overview(w http.ResponseWriter, r *http.Request)

type Job

type Job struct{}

func (*Job) ChangeJobStatus

func (j *Job) ChangeJobStatus(w http.ResponseWriter, r *http.Request)

func (*Job) DeleteJob

func (j *Job) DeleteJob(w http.ResponseWriter, r *http.Request)

func (*Job) GetExecutingJob

func (j *Job) GetExecutingJob(w http.ResponseWriter, r *http.Request)

func (*Job) GetGroups

func (j *Job) GetGroups(w http.ResponseWriter, r *http.Request)

func (*Job) GetJob

func (j *Job) GetJob(w http.ResponseWriter, r *http.Request)

func (*Job) GetJobNodes

func (j *Job) GetJobNodes(w http.ResponseWriter, r *http.Request)

func (*Job) GetList

func (j *Job) GetList(w http.ResponseWriter, r *http.Request)

func (*Job) JobExecute

func (j *Job) JobExecute(w http.ResponseWriter, r *http.Request)

func (*Job) UpdateJob

func (j *Job) UpdateJob(w http.ResponseWriter, r *http.Request)

type JobLog

type JobLog struct{}

func (*JobLog) GetDetail

func (jl *JobLog) GetDetail(w http.ResponseWriter, r *http.Request)

func (*JobLog) GetList

func (jl *JobLog) GetList(w http.ResponseWriter, r *http.Request)

type Node

type Node struct{}

func (*Node) DeleteGroup

func (n *Node) DeleteGroup(w http.ResponseWriter, r *http.Request)

func (*Node) GetGroupByGroupId

func (n *Node) GetGroupByGroupId(w http.ResponseWriter, r *http.Request)

func (*Node) GetGroups

func (n *Node) GetGroups(w http.ResponseWriter, r *http.Request)

func (*Node) GetNodes

func (n *Node) GetNodes(w http.ResponseWriter, r *http.Request)

func (*Node) UpdateGroup

func (n *Node) UpdateGroup(w http.ResponseWriter, r *http.Request)

type ProcFetchOptions

type ProcFetchOptions struct {
	Groups  []string
	NodeIds []string
	JobIds  []string
}

func (*ProcFetchOptions) Match

func (opt *ProcFetchOptions) Match(proc *cronsun.Process) bool

Jump to

Keyboard shortcuts

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