Documentation
¶
Index ¶
Constants ¶
View Source
const IssuerName = "BetaX ONS"
View Source
const MODEL_NAME = "Core"
Variables ¶
This section is empty.
Functions ¶
func AuthHandler ¶
func AuthHandler() gin.HandlerFunc
func BuildAuthConfig ¶
Types ¶
type AuthService ¶
func (AuthService) QueryUserInfo ¶
func (as AuthService) QueryUserInfo(token string) (*User, error)
查询 OAuth2 用户信息
type DeviceService ¶
type DeviceService struct {
Data *model.DeviceModel
}
func CreateDeviceService ¶
func CreateDeviceService(engine *xorm.Engine) *DeviceService
type P2PService ¶
type P2PService struct {
Data *model.DeviceModel
}
func CreateP2PService ¶
func CreateP2PService(engine *xorm.Engine) *P2PService
func (P2PService) Assess ¶
func (ps P2PService) Assess(ctx *gin.Context)
type Router ¶
type UserService ¶
func CreateUserService ¶
func CreateUserService(engine *xorm.Engine) *UserService
func (UserService) GetLoginUser ¶
func (us UserService) GetLoginUser(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.