Documentation ¶
Index ¶
- Constants
- func GetVersion(ctx *Context)
- func InStringArray(k string, ss []string) bool
- func InitServer() (*http.Server, error)
- func SubtractStringArray(a, b []string) (c []string)
- func UniqueStringArray(a []string) []string
- type Account
- type Administrator
- type Authentication
- type BaseHandler
- type ByProcTime
- type Configuration
- type Context
- type Info
- type Job
- func (j *Job) BatchChangeJobStatus(ctx *Context)
- func (j *Job) ChangeJobStatus(ctx *Context)
- func (j *Job) DeleteJob(ctx *Context)
- func (j *Job) GetExecutingJob(ctx *Context)
- func (j *Job) GetGroups(ctx *Context)
- func (j *Job) GetJob(ctx *Context)
- func (j *Job) GetJobNodes(ctx *Context)
- func (j *Job) GetList(ctx *Context)
- func (j *Job) JobExecute(ctx *Context)
- func (j *Job) KillExecutingJob(ctx *Context)
- func (j *Job) UpdateJob(ctx *Context)
- type JobLog
- type Node
- type ProcFetchOptions
Constants ¶
View Source
const VersionNumber = "0.3.5"
Variables ¶
This section is empty.
Functions ¶
func GetVersion ¶
func GetVersion(ctx *Context)
func InStringArray ¶
func InitServer ¶
func SubtractStringArray ¶
返回存在于 a 且不存在于 b 中的元素集合
func UniqueStringArray ¶
Types ¶
type Administrator ¶
type Administrator struct{}
func (*Administrator) AddAccount ¶
func (this *Administrator) AddAccount(ctx *Context)
func (*Administrator) GetAccount ¶
func (this *Administrator) GetAccount(ctx *Context)
func (*Administrator) GetAccountList ¶
func (this *Administrator) GetAccountList(ctx *Context)
func (*Administrator) UpdateAccount ¶
func (this *Administrator) UpdateAccount(ctx *Context)
type Authentication ¶
type Authentication struct{}
func (*Authentication) DeleteAuthSession ¶
func (this *Authentication) DeleteAuthSession(ctx *Context)
func (*Authentication) GetAuthSession ¶
func (this *Authentication) GetAuthSession(ctx *Context)
func (*Authentication) SetPassword ¶
func (this *Authentication) SetPassword(ctx *Context)
type BaseHandler ¶
type BaseHandler struct { Ctx map[string]interface{} BeforeHandle func(ctx *Context) (abort bool) Handle func(ctx *Context) }
func NewAdminAuthHandler ¶
func NewAdminAuthHandler(f func(ctx *Context)) BaseHandler
func NewAuthHandler ¶
func NewAuthHandler(f func(ctx *Context), reqRole mgo.Role) BaseHandler
func NewBaseHandler ¶
func NewBaseHandler(f func(ctx *Context)) BaseHandler
func (BaseHandler) ServeHTTP ¶
func (b BaseHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ByProcTime ¶
type ByProcTime []*processInfo
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(ctx *Context)
type Context ¶
type Job ¶
type Job struct{}
func (*Job) BatchChangeJobStatus ¶
func (*Job) ChangeJobStatus ¶
func (*Job) GetExecutingJob ¶
func (*Job) GetJobNodes ¶
func (*Job) JobExecute ¶
func (*Job) KillExecutingJob ¶
type Node ¶
type Node struct{}
func (*Node) DeleteGroup ¶
func (*Node) DeleteNode ¶
DeleteNode force remove node (by ip) which state in offline or damaged.
func (*Node) GetGroupByGroupId ¶
func (*Node) UpdateGroup ¶
type ProcFetchOptions ¶
func (*ProcFetchOptions) Match ¶
func (opt *ProcFetchOptions) Match(proc *cronsun.Process) bool
Click to show internal directories.
Click to hide internal directories.