helpers

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAllMenuMaps added in v0.4.8

func FindAllMenuMaps(nodeLogsType string, countUnreadNodeLogs int64, countUnreadIPItems int64) []maps.Map

func NewUserMustAuth

func NewUserMustAuth(module string) *userMustAuth

func NotifyIPItemsCountChanges added in v0.5.2

func NotifyIPItemsCountChanges()

func NotifyNodeLogsCountChange added in v0.5.2

func NotifyNodeLogsCountChange()

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