helpers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserMustAuth

type UserMustAuth struct {
	Username string
	Grant    string
}

认证拦截

func (*UserMustAuth) BeforeAction

func (this *UserMustAuth) BeforeAction(actionPtr actions.ActionWrapper, paramName string) (goNext bool)

type UserShouldAuth

type UserShouldAuth struct {
	// contains filtered or unexported fields
}

func (*UserShouldAuth) BeforeAction

func (this *UserShouldAuth) BeforeAction(actionPtr actions.ActionWrapper, paramName string) (goNext bool)

func (*UserShouldAuth) Logout

func (this *UserShouldAuth) Logout()

func (*UserShouldAuth) StoreUsername

func (this *UserShouldAuth) StoreUsername(username string, remember bool)

存储用户名到SESSION

Jump to

Keyboard shortcuts

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