model

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRequest

type AuthRequest struct {
	RedirectURI             string   `json:"redirect_uri"`
	AuthURL                 string   `json:"auth_url"`
	GitHubUserID            string   `json:"github_user_id"`
	GitHubUserLogin         string   `json:"github_user_login"`
	GithubTeamIDs           []string `json:"github_team_ids"`
	GithubUserTwoFactorAuth bool     `json:"github_user_two_factor_auth"`
}

type RequestGenerateOAuthPageURL

type RequestGenerateOAuthPageURL struct {
	RedirectURI string `json:"redirect_uri"`
	AuthURL     string `json:"auth_url"`
}

type RequestGetAuthResult

type RequestGetAuthResult struct {
	RID string `in:"query=rid;form=rid;required" json:"rid"`
}

type RequestRedirect

type RequestRedirect struct {
	RID  string `in:"query=rid;form=rid;required" json:"rid"`
	Code string `in:"query=code;form=code;required" json:"code"`
}

type ResponseError

type ResponseError struct {
	Message string `json:"msg"`
}

type ResponseGenerateOAuthPageURL

type ResponseGenerateOAuthPageURL struct {
	OAuthPageURL string `json:"oauth_page_url"`
}

type ResponseGetAuthResult

type ResponseGetAuthResult struct {
	RedirectURI             string   `json:"redirect_uri"`
	GitHubUserID            string   `json:"github_user_id"`
	GitHubUserLogin         string   `json:"github_user_login"`
	GithubTeamIDs           []string `json:"github_team_ids"`
	GithubUserTwoFactorAuth bool     `json:"github_user_two_factor_auth"`
}

Jump to

Keyboard shortcuts

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