api

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 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 {
	App          *iris.Application     `bean:"iris_app"` //使用bean标签注入iris
	HelloService *service.HelloService //不使用bean标签则自动按 pkg.name (service.HelloService) 注入
}

func (*HelloController) Bean

func (r *HelloController) Bean() (bean.Bean, string)

实现Bean接口方法,返回自身和 bean name

func (*HelloController) Handle

func (r *HelloController) Handle()

实现controller接口方法,注册路由

Jump to

Keyboard shortcuts

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