Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelloController ¶
type HelloController struct { IrisApp *iris.Application `bean:"iris_app"` //使用bean标签注入iris HelloService *service.HelloService //不使用bean标签则自动按 pkg.name (service.HelloService) 注入 }
func (*HelloController) Bean ¶
func (r *HelloController) Bean() string
实现Bean接口方法,返回自身和 bean name bean name中带有controller则按约定注册所有方法
func (*HelloController) CacheAPI ¶ added in v1.1.2
func (r *HelloController) CacheAPI()
func (*HelloController) IndexAPI ¶ added in v1.1.2
func (r *HelloController) IndexAPI()
定义为controller,注册路由
Click to show internal directories.
Click to hide internal directories.