admin_http_handler

package
v0.0.0-...-484b376 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminHttpListener

func AdminHttpListener(conf config.AdminConf)

func ApiResult

func ApiResult(c *gin.Context, code int64, msg string)

func AuthPortToUser

func AuthPortToUser(c *gin.Context)

func AuthSubDomainToUser

func AuthSubDomainToUser(c *gin.Context)

func BinaryFileSystem

func BinaryFileSystem(root string) *binaryFileSystem

func CheckAdminRole

func CheckAdminRole(c *gin.Context) (*db.User, error)

func CheckLogin

func CheckLogin(c *gin.Context) int64

func CommonError

func CommonError(c *gin.Context, err error, scope string) bool

returns true if error

func GetAllPortAuth

func GetAllPortAuth(c *gin.Context)

func GetAllSubDomainAuth

func GetAllSubDomainAuth(c *gin.Context)

func GetUser

func GetUser(c *gin.Context)

func HttpSuccess

func HttpSuccess(c *gin.Context)

func ListUsers

func ListUsers(c *gin.Context)

func Login

func Login(c *gin.Context)

func Logout

func Logout(c *gin.Context)

func Register

func Register(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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