helpers

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserMustAuth

func NewUserMustAuth(module string) *userMustAuth

Types

type UserShouldAuth

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

func (*UserShouldAuth) AdminId

func (this *UserShouldAuth) AdminId() int

func (*UserShouldAuth) BeforeAction

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

func (*UserShouldAuth) IsUser

func (this *UserShouldAuth) IsUser() bool

func (*UserShouldAuth) Logout

func (this *UserShouldAuth) Logout()

func (*UserShouldAuth) StoreAdmin

func (this *UserShouldAuth) StoreAdmin(adminId int64, remember bool)

StoreAdmin 存储用户名到SESSION

Jump to

Keyboard shortcuts

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