Documentation ¶
Index ¶
- type Cycle
- func (c Cycle) Administrator(r *configs.Config)
- func (c Cycle) Bind(r *configs.Config)
- func (c Cycle) OnAdmin(r *configs.Config)
- func (c Cycle) OnAuthorize(r *configs.Config)
- func (c Cycle) OnCors(r *configs.Config)
- func (c Cycle) OnCreate(r *configs.Config)
- func (c Cycle) OnStatic(r *configs.Config)
- func (c Cycle) Submitter(r *configs.Config)
- func (c Cycle) Visitor(r *configs.Config)
- type LifeCycle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cycle ¶
type Cycle int
func (Cycle) Administrator ¶
func (Cycle) OnAuthorize ¶
type LifeCycle ¶ added in v0.7.0
type LifeCycle interface { // 初始化 OnCreate(*configs.Config) // 跨域设置 OnCors(*configs.Config) // 静态资源绑定 OnStatic(*configs.Config) // 访客接口 Visitor(*configs.Config) // 鉴定提交者权限 OnAuthorize(*configs.Config) // 提交者接口 Submitter(*configs.Config) // 鉴定管理员权限 OnAdmin(*configs.Config) // 管理员接口 Administrator(*configs.Config) // 绑定所有接口 Bind(*configs.Config) }
Click to show internal directories.
Click to hide internal directories.