controller

package
v0.0.1-45c8966 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalData = &GlobalPageData{}

Functions

func AddNodeHandler

func AddNodeHandler() gin.HandlerFunc

func AddProxyHandler

func AddProxyHandler() gin.HandlerFunc

AddProxyHandler error.

func AddUserHandler

func AddUserHandler() gin.HandlerFunc

func FlushTokenHandler

func FlushTokenHandler() gin.HandlerFunc

func GetNodeWithUser

func GetNodeWithUser() gin.HandlerFunc

func GetUserConfigPath

func GetUserConfigPath() gin.HandlerFunc

func IndexHandler

func IndexHandler() gin.HandlerFunc

func LoginHandler

func LoginHandler() gin.HandlerFunc

func LogoutHandler

func LogoutHandler() gin.HandlerFunc

func NodeAvailableTestHandler

func NodeAvailableTestHandler() gin.HandlerFunc

func NodesListHandler

func NodesListHandler() gin.HandlerFunc

func PutChangeUserPassword

func PutChangeUserPassword() gin.HandlerFunc

func PutUserToNode

func PutUserToNode() gin.HandlerFunc

func RemoveUser

func RemoveUser() gin.HandlerFunc

func RequestLoginHandler

func RequestLoginHandler() gin.HandlerFunc

func SetUserLockHandler

func SetUserLockHandler() gin.HandlerFunc

func UserListHandler

func UserListHandler() gin.HandlerFunc

func UsersListHandler

func UsersListHandler() gin.HandlerFunc

Types

type GlobalPageData

type GlobalPageData struct {
	Title, Description, Copyright string
	Menus                         Menus
	Body                          interface{}
	CurrentPage                   string
}

func (*GlobalPageData) AddMenu

func (g *GlobalPageData) AddMenu(name, link string, role int)

func (*GlobalPageData) Init

func (g *GlobalPageData) Init()

func (*GlobalPageData) SetCurrentPath

func (g *GlobalPageData) SetCurrentPath(p string)

func (*GlobalPageData) SetCurrentTitle

func (g *GlobalPageData) SetCurrentTitle(p string)
type Menu struct {
	Name, Link string
	Role       int
	Menus      Menus
}
type Menus []*Menu

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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