api

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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,注册路由

Jump to

Keyboard shortcuts

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