controllers

package
v0.0.0-...-b23eb34 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2014 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USERNAME  = "user"
	EMAIL     = "email"
	ACCOUNTID = "aid"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct{ CommonDomain }

总账户接口 姿势: BrowserID(persona) -> Account -> AppUser

func (*Account) DoLogin

func (c *Account) DoLogin(username, password, return_to string) r.Result

[动] 用户登入

func (*Account) DoLoginBrowserID

func (c *Account) DoLoginBrowserID(assertion, return_to string) r.Result

BrowserID协议登录

func (*Account) DoSignup

func (c *Account) DoSignup(account *models.Account, password, return_to string) r.Result

[动][写] 注册

func (*Account) Login

func (c *Account) Login(return_to string) r.Result

[静] 用户登入前端

func (*Account) Logout

func (c *Account) Logout(return_to string) r.Result

[动][边] 用户登出

func (*Account) Reauth

func (c *Account) Reauth(code string, id string) r.Result

[动][写] 验证

func (*Account) Signup

func (c *Account) Signup(return_to string) r.Result

[静] 注册前端

type AdminDomain

type AdminDomain struct{ CommonDomain }

后台管理

func (*AdminDomain) CheckAdmin

func (c *AdminDomain) CheckAdmin() (u *models.Account, po *repo.Common)

管理员身份验证持久化

func (*AdminDomain) CheckAdminAndClose

func (c *AdminDomain) CheckAdminAndClose() (u *models.Account)

管理员身份验证持久化

type Callback

type Callback struct{ PlatformDomain }

回调控制器

func (Callback) Call

func (c Callback) Call(user, project, url string) r.Result

func (Callback) Create

func (c Callback) Create(user, project string) r.Result

[静]创建前端

func (Callback) DoCreate

func (c Callback) DoCreate(user, project string, callback *models.Callback) r.Result

func (Callback) Show

func (c Callback) Show(user, project string) r.Result

type CallbackError

type CallbackError struct {
	Url  string `json:"url"`
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

错误信息

type CommonDomain

type CommonDomain struct{ *r.Controller }

边缘层

func (*CommonDomain) CheckAccount

func (c *CommonDomain) CheckAccount() (u *models.Account, po *repo.Common)

账号状态

func (*CommonDomain) CheckAccountAndClose

func (c *CommonDomain) CheckAccountAndClose() *models.Account

账号状态

func (*CommonDomain) Return

func (c *CommonDomain) Return(return_to string) r.Result

返回Referer页或者return_to页

func (*CommonDomain) SetLogin

func (c *CommonDomain) SetLogin(account *models.Account)

func (*CommonDomain) SetLogout

func (c *CommonDomain) SetLogout()

type Dashboard

type Dashboard struct{ PlatformDomain }

func (*Dashboard) Help

func (c *Dashboard) Help() r.Result

func (Dashboard) Index

func (c Dashboard) Index() r.Result

type Filter

type Filter struct{ PlatformDomain }

过滤器控制器

func (Filter) Create

func (c Filter) Create(user, project string) r.Result

[静]创建前端

func (Filter) DoCreate

func (c Filter) DoCreate(user, project string, filter *models.Filter) r.Result

[动][写]

func (Filter) Show

func (c Filter) Show(user, project string) r.Result

[静]显示单个过滤器

type Organization

type Organization struct{ PlatformDomain }

func (Organization) Profile

func (c Organization) Profile() r.Result

显示组织独立页

func (Organization) Show

func (c Organization) Show(user string) r.Result

type PlatformAdmin

type PlatformAdmin struct{ AdminDomain }

平台管理

func (*PlatformAdmin) Index

func (c *PlatformAdmin) Index() r.Result

type PlatformDomain

type PlatformDomain struct{ CommonDomain }

平台

func (*PlatformDomain) CheckAccessProject

func (c *PlatformDomain) CheckAccessProject(user, project string) (u *models.PlatformUser, p *models.Project, access int16, po *repo.Platform)

检查权限

func (*PlatformDomain) CheckAccessProjectAndClose

func (c *PlatformDomain) CheckAccessProjectAndClose(user, project string) (*models.PlatformUser, *models.Project, int16)

检查权限

func (*PlatformDomain) CheckAccessProjectRenderArgs

func (c *PlatformDomain) CheckAccessProjectRenderArgs(user, project string) (*models.PlatformUser, *models.Project, *repo.Platform)

检查编辑权限 setter

func (*PlatformDomain) CheckAccessProjectRenderArgsAndClose

func (c *PlatformDomain) CheckAccessProjectRenderArgsAndClose(user, project string) (*models.PlatformUser, *models.Project)

检查编辑权限 setter

func (*PlatformDomain) CheckProject

func (c *PlatformDomain) CheckProject(user, project string) (mProject *models.Project, po *repo.Platform)

统一参数解析 mProject setter

func (*PlatformDomain) CheckProjectAndClose

func (c *PlatformDomain) CheckProjectAndClose(user, project string) *models.Project

统一参数解析 mProject setter

func (*PlatformDomain) CheckUser

func (c *PlatformDomain) CheckUser() (u *models.PlatformUser, po *repo.Platform)

用户状态

func (*PlatformDomain) CheckUserAndClose

func (c *PlatformDomain) CheckUserAndClose() *models.PlatformUser

用户状态

type PlatformUser

type PlatformUser struct{ PlatformDomain }

用户控制器

func (*PlatformUser) Login

func (c *PlatformUser) Login(return_to string) r.Result

[静]平台用户登录前端

func (*PlatformUser) Profile

func (c *PlatformUser) Profile(user string) r.Result

用户基本信息

func (c *PlatformUser) ProfileLink(user string) r.Result

跳转

func (*PlatformUser) Security

func (c *PlatformUser) Security(user string) r.Result

用户安全信息

func (*PlatformUser) Show

func (c *PlatformUser) Show(user string) r.Result

[静]用户展示页

type Project

type Project struct{ PlatformDomain }

项目控制器

func (Project) Create

func (c Project) Create() r.Result

[静]创建项目前端

func (c Project) CreateLink() r.Result

[链]创建项目同义词

func (Project) Delete

func (c Project) Delete(user, project string) r.Result

[静]删除项目

func (Project) DoCreate

func (c Project) DoCreate(project *models.Project) r.Result

[动]创建项目

func (Project) DoDelete

func (c Project) DoDelete(user, project string) r.Result

[动]删除项目

func (Project) Explore

func (c Project) Explore() r.Result

[静]浏览页面

func (c Project) ListLink() r.Result

[链]列表同义词

func (Project) Rename

func (c Project) Rename(user, project string) r.Result

[动]重命名项目

func (Project) Setting

func (c Project) Setting(user, project string) r.Result

[静]设置页面前端

func (Project) Show

func (c Project) Show(user, project string) r.Result

[静]显示项目独立页

type Resource

type Resource struct{ PlatformDomain }

资源控制器

func (Resource) Create

func (c Resource) Create(user, project string) r.Result

[静]创建前端

func (Resource) DoCreate

func (c Resource) DoCreate(user, project string, resource *models.Resource) r.Result

[动][写]

func (Resource) Show

func (c Resource) Show(user, project string) r.Result

[静]显示单个资源

type Source

type Source struct{ PlatformDomain }

来源点控制器

func (Source) Create

func (c Source) Create(user, project string) r.Result

[静]创建前端

func (Source) DoCreate

func (c Source) DoCreate(user, project string, source *models.Source) r.Result

[动][写]

func (Source) Show

func (c Source) Show(user, project string) r.Result

[静]显示单个来源点

type Target

type Target struct{ PlatformDomain }

目标点控制器

func (Target) Create

func (c Target) Create(user, project string) r.Result

[静]创建前端

func (Target) DoCreate

func (c Target) DoCreate(user, project string, target *models.Target) r.Result

[动][写]

func (Target) Show

func (c Target) Show(user, project string) r.Result

[静]显示单个目标点

Jump to

Keyboard shortcuts

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