user

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthRequired

func AuthRequired() gin.HandlerFunc

func AuthServer

func AuthServer() gin.HandlerFunc

func HealthCheck

func HealthCheck(c *gin.Context)

func LdapLogin

func LdapLogin(c *gin.Context)

func Login

func Login(c *gin.Context)

@Summary 登录 @Produce json @Param username query string true "username" @Param password query string true "password" @Success 200 {string} json "{"message": "login success"}" @Router /login [post]

func Logout

func Logout(c *gin.Context)

@Summary 登出 @Produce json @Success 200 {string} json "{"message": "successfully logout"}" @Router /login [get]

func UserMsg

func UserMsg(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