controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InSlice

func InSlice(v string, sl []string) bool

InSlice checks given string in string slice or not.

func Init

func Init()

func Register

func Register(area string, c IController)

Register 自动注册控制器下的所有Action方法

Types

type BaseController

type BaseController struct {
	HttpContext context.HttpContext
}

type ControllerMiddleware

type ControllerMiddleware struct {
}

func (ControllerMiddleware) Invoke

func (receiver ControllerMiddleware) Invoke(httpContext *context.HttpContext)

type IController

type IController interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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