helpers

package
v0.1.72 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 5 Imported by: 45

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 (auth *UserShouldAuth) BeforeAction(actionPtr actions.ActionWrapper, paramName string) (goNext bool)

func (*UserShouldAuth) Logout

func (auth *UserShouldAuth) Logout()

func (*UserShouldAuth) StoreUsername

func (auth *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