controller

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallerName added in v1.0.15

func CallerName() string

Types

type BaseController

type BaseController struct {
	policy.Authorization
	auth.RequestUser
	validator.Validation
	model.BaseModel
	ShowData map[string]interface{}
	Output   map[string]string
	TplName  string
	// contains filtered or unexported fields
}

func (*BaseController) GetInt64 added in v1.0.17

func (c *BaseController) GetInt64(name string) (i64 int64)

GetInt64 returns the value associated with the key as an integer.

func (*BaseController) SetController added in v1.0.15

func (c *BaseController) SetController()

func (*BaseController) SetMethod added in v1.0.15

func (c *BaseController) SetMethod()

func (*BaseController) View added in v1.0.13

func (c *BaseController) View(request request.Context)

type Controller

type Controller interface {
	Validate(c validator.Context, _validator interface{}, onlyFirstError bool) (isAbort bool)
	Authorize(c policy.Context, policies policy.Policier, action policy.Action) (permit bool, user auth.IUser)
}

type ControllerInterface added in v1.0.13

type ControllerInterface interface {
	View()
	SetController()
	SetMethod()
	GetInt64(name string)
}

Jump to

Keyboard shortcuts

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