controllers

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TASKLOG_STATUS_FINISH = "2"

	TASKLOG_SUCCESS = "1"
)

Variables

View Source
var Version string

Functions

This section is empty.

Types

type ApiAuthController

type ApiAuthController struct {
	BaseController
}

func (*ApiAuthController) Add

func (this *ApiAuthController) Add()

func (*ApiAuthController) Delete

func (this *ApiAuthController) Delete()

删除 api_auth

func (*ApiAuthController) Edit

func (this *ApiAuthController) Edit()

func (*ApiAuthController) Introduce

func (this *ApiAuthController) Introduce()

api 接入手册

func (*ApiAuthController) List

func (this *ApiAuthController) List()

func (*ApiAuthController) Modify

func (this *ApiAuthController) Modify()

修改 api_auth

func (*ApiAuthController) Save

func (this *ApiAuthController) Save()

type BaseController

type BaseController struct {
	beego.Controller
	UserID string
	User   map[string]string
}

func (*BaseController) DebugLog

func (this *BaseController) DebugLog(message string)

func (*BaseController) ErrorLog

func (this *BaseController) ErrorLog(message string)

func (*BaseController) InfoLog

func (this *BaseController) InfoLog(message string)

func (*BaseController) Prepare

func (this *BaseController) Prepare()

prepare

func (*BaseController) RecordLog

func (this *BaseController) RecordLog(message string, level int)

insert action log

func (*BaseController) SetPaginator

func (this *BaseController) SetPaginator(per int, nums int64) *utils.Paginator

paginator

func (*BaseController) WarningLog

func (this *BaseController) WarningLog(message string)

type ConfigureController

type ConfigureController struct {
	BaseController
}

func (*ConfigureController) AddBlock

func (this *ConfigureController) AddBlock()

添加封版配置

func (*ConfigureController) AddEmailConfig

func (this *ConfigureController) AddEmailConfig()

添加邮件配置

func (*ConfigureController) Block

func (this *ConfigureController) Block()

封版配置

func (*ConfigureController) Email

func (this *ConfigureController) Email()

邮件配置

func (*ConfigureController) SendTestEmail

func (this *ConfigureController) SendTestEmail()

测试邮件发送

type ContactController

type ContactController struct {
	BaseController
}

func (*ContactController) Add

func (this *ContactController) Add()

添加页面

func (*ContactController) Delete

func (this *ContactController) Delete()

删除操作

func (*ContactController) List

func (this *ContactController) List()

列表

func (*ContactController) Modify

func (this *ContactController) Modify()

修改操作

func (*ContactController) Save

func (this *ContactController) Save()

添加操作

func (*ContactController) Update

func (this *ContactController) Update()

修改页面

type GroupController

type GroupController struct {
	BaseController
}

func (*GroupController) Add

func (this *GroupController) Add()

添加项目组

func (*GroupController) Delete

func (this *GroupController) Delete()

删除

func (*GroupController) Edit

func (this *GroupController) Edit()

修改

func (*GroupController) List

func (this *GroupController) List()

项目组列表

func (*GroupController) Modify

func (this *GroupController) Modify()

修改保存

func (*GroupController) Save

func (this *GroupController) Save()

保存项目组

type JsonResponse

type JsonResponse struct {
	Code     int                    `json:"code"`
	Message  interface{}            `json:"message"`
	Data     interface{}            `json:"data"`
	Redirect map[string]interface{} `json:"redirect"`
}

type LogController

type LogController struct {
	BaseController
}

func (*LogController) Action

func (this *LogController) Action()

行为日志列表

func (*LogController) ActionInfo

func (this *LogController) ActionInfo()

行为日志详细信息

func (*LogController) Task

func (this *LogController) Task()

任务日志列表

type LoginController

type LoginController struct {
	BaseController
}

func (*LoginController) Captcha

func (this *LoginController) Captcha()

func (*LoginController) Index

func (this *LoginController) Index()

func (*LoginController) Logout

func (this *LoginController) Logout()

logout

type MainController

type MainController struct {
	BaseController
}

func (*MainController) Default

func (this *MainController) Default()

func (*MainController) GetActiveProjectRank

func (this *MainController) GetActiveProjectRank()

ajax 获取活跃项目排行榜

func (*MainController) GetContact

func (this *MainController) GetContact()

ajax 获取联系人信息

func (*MainController) GetMyProjectCount

func (this *MainController) GetMyProjectCount()

ajax 获取我的项目总数

func (*MainController) GetPublishData

func (this *MainController) GetPublishData()

ajax 获取发布统计数据

func (*MainController) Index

func (this *MainController) Index()

func (*MainController) ServerStatus

func (this *MainController) ServerStatus()

ajax 获取服务器状态

type NodeController

type NodeController struct {
	BaseController
}

func (*NodeController) Add

func (this *NodeController) Add()

添加节点

func (*NodeController) Delete

func (this *NodeController) Delete()

删除节点

func (*NodeController) Edit

func (this *NodeController) Edit()

修改

func (*NodeController) List

func (this *NodeController) List()

节点列表

func (*NodeController) Modify

func (this *NodeController) Modify()

修改保存

func (*NodeController) Save

func (this *NodeController) Save()

保存节点

func (*NodeController) Status

func (this *NodeController) Status()

ajax 获取节点状态

type NodesController

type NodesController struct {
	BaseController
}

func (*NodesController) Add

func (this *NodesController) Add()

添加节点组

func (*NodesController) Delete

func (this *NodesController) Delete()

删除

func (*NodesController) Edit

func (this *NodesController) Edit()

修改

func (*NodesController) ImportNode

func (this *NodesController) ImportNode()

导入节点

func (*NodesController) List

func (this *NodesController) List()

节点组列表

func (*NodesController) Modify

func (this *NodesController) Modify()

修改保存

func (*NodesController) Node

func (this *NodesController) Node()

节点列表

func (*NodesController) Remove

func (this *NodesController) Remove()

导入节点

func (*NodesController) Save

func (this *NodesController) Save()

保存节点组

type NoticeController

type NoticeController struct {
	BaseController
}

func (*NoticeController) Add

func (this *NoticeController) Add()

添加公告

func (*NoticeController) Delete

func (this *NoticeController) Delete()

删除节点

func (*NoticeController) Edit

func (this *NoticeController) Edit()

修改公告

func (*NoticeController) Info

func (this *NoticeController) Info()

公告详细信息

func (*NoticeController) List

func (this *NoticeController) List()

公告列表

func (*NoticeController) Modify

func (this *NoticeController) Modify()

修改保存公告

func (*NoticeController) Save

func (this *NoticeController) Save()

保存公告

type ProfileController

type ProfileController struct {
	BaseController
}

func (*ProfileController) My

func (this *ProfileController) My()

修改个人资料

func (*ProfileController) MyBak

func (this *ProfileController) MyBak()

个人资料

func (*ProfileController) Password

func (this *ProfileController) Password()

修改密码

func (*ProfileController) Save

func (this *ProfileController) Save()

个人资料保存

func (*ProfileController) SavePassword

func (this *ProfileController) SavePassword()

修改密码保存

type ProjectController

type ProjectController struct {
	BaseController
}

func (*ProjectController) Add

func (this *ProjectController) Add()

添加项目

func (*ProjectController) Config

func (this *ProjectController) Config()

项目配置

func (*ProjectController) ConfigSave

func (this *ProjectController) ConfigSave()

项目配置保存

func (*ProjectController) Copy added in v0.8.3

func (this *ProjectController) Copy()

复制项目

func (*ProjectController) Delete

func (this *ProjectController) Delete()

删除节点

func (*ProjectController) Edit

func (this *ProjectController) Edit()

修改项目

func (*ProjectController) Info

func (this *ProjectController) Info()

项目详细信息

func (*ProjectController) List

func (this *ProjectController) List()

项目列表

func (*ProjectController) Modify

func (this *ProjectController) Modify()

修改保存项目

func (*ProjectController) Node

func (this *ProjectController) Node()

项目节点列表

func (*ProjectController) NodeSave

func (this *ProjectController) NodeSave()

项目节点保存

func (*ProjectController) Save

func (this *ProjectController) Save()

保存项目

type PublishController

type PublishController struct {
	BaseController
}

func (*PublishController) DoPublish

func (this *PublishController) DoPublish()

发布操作

func (*PublishController) DoReset

func (this *PublishController) DoReset()

回滚操作

func (*PublishController) History

func (this *PublishController) History()

发布历史页面

func (*PublishController) Info

func (this *PublishController) Info()

项目信息

func (*PublishController) Project

func (this *PublishController) Project()

项目列表

func (*PublishController) Publish

func (this *PublishController) Publish()

发布页面

func (*PublishController) Reset

func (this *PublishController) Reset()

回滚页面

func (*PublishController) TaskLog

func (this *PublishController) TaskLog()

节点信息

type StatisticsController

type StatisticsController struct {
	BaseController
}

func (*StatisticsController) Statistics

func (this *StatisticsController) Statistics()

type TaskController

type TaskController struct {
	BaseController
}

func (*TaskController) Center

func (this *TaskController) Center()

func (*TaskController) GetExcutingTask

func (this *TaskController) GetExcutingTask()

func (*TaskController) GetTaskLog

func (this *TaskController) GetTaskLog()

func (*TaskController) GetTaskLogByProjectId

func (this *TaskController) GetTaskLogByProjectId()

func (*TaskController) Node

func (this *TaskController) Node()

func (*TaskController) Task

func (this *TaskController) Task()

type TaskLogController

type TaskLogController struct {
	BaseController
}

func (*TaskLogController) GetTaskLogs

func (this *TaskLogController) GetTaskLogs()

获取 task_logs

type UserController

type UserController struct {
	BaseController
}

func (*UserController) Add

func (this *UserController) Add()

添加用户

func (*UserController) Delete

func (this *UserController) Delete()

func (*UserController) Edit

func (this *UserController) Edit()

修改

func (*UserController) List

func (this *UserController) List()

用户列表

func (*UserController) Modify

func (this *UserController) Modify()

修改保存

func (*UserController) Project

func (this *UserController) Project()

用户项目列表

func (*UserController) ProjectSave

func (this *UserController) ProjectSave()

用户项目保存

func (*UserController) Save

func (this *UserController) Save()

保存用户

Jump to

Keyboard shortcuts

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