Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
func SetLoginService ¶
func SetLoginService(impl LoginChecker)
Types ¶
type AdminAuthToolImpl ¶
type AdminAuthToolImpl struct { }
var AdminAuthService AdminAuthToolImpl
func (AdminAuthToolImpl) GetReviewer ¶
func (AdminAuthToolImpl) GetReviewer(userName string) (reviewerName string, err error)
type Claims ¶
type Claims struct { Username string `json:"username" binding:"required"` Password string `json:"password" binding:"required"` jwt.StandardClaims }
func ParseToken ¶
type ConfAuthToolImpl ¶
type ConfAuthToolImpl struct { }
var ConfAuthService ConfAuthToolImpl
func (ConfAuthToolImpl) GetReviewer ¶
func (ConfAuthToolImpl) GetReviewer(userName string) (reviewerName string, err error)
type LoginChecker ¶
type NetAuthToolImpl ¶
type NetAuthToolImpl struct { }
var NetAuthService NetAuthToolImpl
func (NetAuthToolImpl) GetReviewer ¶
func (NetAuthToolImpl) GetReviewer(userName string) (reviewerName string, err error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.