routes

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMemberToGroup

func AddMemberToGroup(c *gin.Context, vars middleware.GinHandlerVars)

func BanUser

func BanUser(c *gin.Context, vars middleware.GinHandlerVars)

func CheckToken

func CheckToken(c *gin.Context, vars middleware.GinHandlerVars)

func CreateDomain

func CreateDomain(c *gin.Context, vars middleware.GinHandlerVars)

func CreateGroup

func CreateGroup(c *gin.Context, vars middleware.GinHandlerVars)

func CreateTicket

func CreateTicket(c *gin.Context, vars middleware.GinHandlerVars)

func DelMemberFromGroup

func DelMemberFromGroup(c *gin.Context, vars middleware.GinHandlerVars)

func DeleteDomain

func DeleteDomain(c *gin.Context, vars middleware.GinHandlerVars)

func DeleteGroup

func DeleteGroup(c *gin.Context, vars middleware.GinHandlerVars)

func DeleteTicket

func DeleteTicket(c *gin.Context, vars middleware.GinHandlerVars)

func GetDomain

func GetDomain(c *gin.Context, vars middleware.GinHandlerVars)

func GetGoogleAuthConfig

func GetGoogleAuthConfig() *oauth2.Config

func GetGroup

func GetGroup(c *gin.Context, vars middleware.GinHandlerVars)

func GetTicket

func GetTicket(c *gin.Context, vars middleware.GinHandlerVars)

func GoogleCBHandler

func GoogleCBHandler(c *gin.Context, vars middleware.GinHandlerVars)

func HZDump added in v0.1.2

func HZDump(c *gin.Context, vars middleware.GinHandlerVars)

func HZInfo added in v0.1.2

func HZInfo(c *gin.Context, vars middleware.GinHandlerVars)

func InitHandler

func InitHandler(c *gin.Context, vars middleware.GinHandlerVars)

func InitHandler(c *gin.Context, logger *zap.Logger, config *appconfig.AppConfig) {

func ListBannedUsers

func ListBannedUsers(c *gin.Context, vars middleware.GinHandlerVars)

func ListDomains

func ListDomains(c *gin.Context, vars middleware.GinHandlerVars)

func ListGroups

func ListGroups(c *gin.Context, vars middleware.GinHandlerVars)

func ListSessions

func ListSessions(c *gin.Context, vars middleware.GinHandlerVars, isCacheReady *bool)

func ListTickets

func ListTickets(c *gin.Context, vars middleware.GinHandlerVars)

func ObtainTicket

func ObtainTicket(c *gin.Context, vars middleware.GinHandlerVars)

func PeerInfo added in v0.1.2

func PeerInfo(c *gin.Context, vars middleware.GinHandlerVars)

imo.hzClient.GetDistributedObjectsInfo(context.TODO())

func RenewToken added in v0.1.2

func RenewToken(c *gin.Context, vars middleware.GinHandlerVars)

func TicketGetSecret

func TicketGetSecret(c *gin.Context, vars middleware.GinHandlerVars)

func TicketSetSecret

func TicketSetSecret(c *gin.Context, vars middleware.GinHandlerVars)

func UnbanUser

func UnbanUser(c *gin.Context, vars middleware.GinHandlerVars)

func VersionInfomation

func VersionInfomation(c *gin.Context, vars middleware.GinHandlerVars)

func Welcome

func Welcome(c *gin.Context)

Version godoc @Summary Welcome @Description welcome message @Tags Version @Accept */* @Produce json @Success 200 {object} map[string]any @Router / [get]

Types

type RBody

type RBody struct {
	AccessToken  string    `json:"accessToken"`
	Expire       string    `json:"expire"`
	RefreshToken string    `json:"refreshToken"`
	TokenType    string    `json:"tokenType"`
	IdToken      string    `json:"idToken"`
	UserInfo     *userInfo `json:"userInfo,omitempty"`
}

type UserInfoRespBody

type UserInfoRespBody struct {
	Id            string `json:"id"`
	Email         string `json:"email"`
	VerifiedEmail string `json:"verifiedEmail"`
	Picture       string `json:"picture"`
	Hd            string `json:"hd"`
}

Jump to

Keyboard shortcuts

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