controllers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2017 License: MIT Imports: 24 Imported by: 2

Documentation

Overview

Package controllers 控制器相关.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountController

type AccountController struct {
	BaseController
}

AccountController 用户登录与注册.

func (*AccountController) Login

func (c *AccountController) Login()

Login 用户登录.

func (*AccountController) Logout

func (c *AccountController) Logout()

Logout 退出登录.

type BaseController

type BaseController struct {
	beego.Controller
	Member *models.Member
	Scheme string
}

BaseController 基础控制器

func (*BaseController) BaseUrl

func (c *BaseController) BaseUrl() string

BaseUrl .

func (*BaseController) ExecuteViewPathTemplate

func (c *BaseController) ExecuteViewPathTemplate(tplName string, data interface{}) (string, error)

ExecuteViewPathTemplate 执行指定的模板并返回执行结果.

func (*BaseController) Forbidden

func (c *BaseController) Forbidden(message interface{})

Forbidden .

func (*BaseController) JsonResult

func (c *BaseController) JsonResult(errCode int, errMsg string, data ...interface{})

JsonResult 响应 json 结果

func (*BaseController) NotFound

func (c *BaseController) NotFound(message interface{})

NotFound .

func (*BaseController) Prepare

func (c *BaseController) Prepare()

Prepare 预处理.

func (*BaseController) ServerError

func (c *BaseController) ServerError(message interface{})

ServerError .

func (*BaseController) SetMember

func (c *BaseController) SetMember(member models.Member)

SetMember 获取或设置当前登录用户信息,如果 MemberId 小于 0 则标识删除 Session

func (*BaseController) UrlFor

func (c *BaseController) UrlFor(endpoint string, values ...interface{}) string

UrlFor .

type HomeController

type HomeController struct {
	BaseController
}

HomeController 首页WebHook控制器

func (*HomeController) Delete

func (c *HomeController) Delete()

Delete 删除

func (*HomeController) Edit

func (c *HomeController) Edit()

Edit 编辑

func (*HomeController) Index

func (c *HomeController) Index()

Index 首页

type MemberController

type MemberController struct {
	BaseController
}

MemberController 会员控制器

func (*MemberController) Delete

func (c *MemberController) Delete()

Delete 删除会员

func (*MemberController) Edit

func (c *MemberController) Edit()

Edit 编辑信息

func (*MemberController) Index

func (c *MemberController) Index()

Index首页

func (*MemberController) My

func (c *MemberController) My()

My 个人中心

func (*MemberController) Upload

func (c *MemberController) Upload()

Upload 上传图片

type PayloadController

type PayloadController struct {
	BaseController
}

PayloadController Git回调页面控制器.

func (*PayloadController) Index

func (c *PayloadController) Index()

Index 回调首页 .

type RelationController

type RelationController struct {
	BaseController
}

RelationController 关系控制器

func (*RelationController) AddServer

func (c *RelationController) AddServer()

AddServer 检索服务器并添加到数据库

func (*RelationController) DeleteServer

func (c *RelationController) DeleteServer()

DeleteServer 删除一个服务器

func (*RelationController) Index

func (c *RelationController) Index()

Index 首页

type SchedulerController

type SchedulerController struct {
	BaseController
}

SchedulerController 任务调度控制器

func (*SchedulerController) Cancel

func (c *SchedulerController) Cancel()

Cancel 取消任务

func (*SchedulerController) Console

func (c *SchedulerController) Console()

Console 控制台

func (*SchedulerController) Index

func (c *SchedulerController) Index()

Index 首页

func (*SchedulerController) Resume

func (c *SchedulerController) Resume()

Resume 重新执行

func (*SchedulerController) Status

func (c *SchedulerController) Status()

Status 任务状态

type ServerController

type ServerController struct {
	BaseController
}

ServerController 服务器控制器

func (*ServerController) Delete

func (c *ServerController) Delete()

Delete 删除一个Server

func (*ServerController) Edit

func (c *ServerController) Edit()

Edit 编辑

func (*ServerController) Index

func (c *ServerController) Index()

Index 服务器列表

Jump to

Keyboard shortcuts

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