index

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LockUserAuth util.Lock

Functions

func DbAuth

func DbAuth(user string, password string) bool

登录从数据库验证账号 2018-01-19 17;08

func RecordLoginUser

func RecordLoginUser(username string, password string) (bool, error)

登录后用户记录到数据库 2018-01-19 17:06

func VerifyUser

func VerifyUser(user string, pass string, service string) bool

2018-01-21 18:44 验证登陆仓库的管理员用户名和密码

Types

type ErrorController

type ErrorController struct {
	beego.Controller
}

func (*ErrorController) Error400

func (c *ErrorController) Error400()

func (*ErrorController) Error403

func (c *ErrorController) Error403()

func (*ErrorController) Error404

func (c *ErrorController) Error404()

func (*ErrorController) Error500

func (c *ErrorController) Error500()

func (*ErrorController) Error503

func (c *ErrorController) Error503()

type IndexController

type IndexController struct {
	beego.Controller
}

func (*IndexController) Get

func (this *IndexController) Get()

@Title create @Description create object @Param body body models.Object true "The object content" @Success 302 {string} models.Object.Id @Failure 403 body is empty @router / [get]

func (*IndexController) GetUser

func (this *IndexController) GetUser()

@router /api/user/ [get]

func (*IndexController) Index

func (this *IndexController) Index()

快捷入口页面 @router /shortcut [get]

func (*IndexController) IndexDetail

func (this *IndexController) IndexDetail()

首页获取集群详细数据 @router /index/detail/hi(.*) [get]

func (*IndexController) Login

func (this *IndexController) Login()

@router /api/user/login [post]

func (*IndexController) LoginPage

func (this *IndexController) LoginPage()

func (*IndexController) OutLogin

func (this *IndexController) OutLogin()

@router /logout [get]

func (*IndexController) Shortcut

func (this *IndexController) Shortcut()

@router /index [get]

func (*IndexController) WebTty

func (this *IndexController) WebTty()

web 终端 2018-01-15 10:00

Jump to

Keyboard shortcuts

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