Documentation
¶
Index ¶
- func GetGithubOAuth(c echo.Context, client *GitHubClient) error
- func GetInfos(c echo.Context) error
- func GetOAuthCallback(c echo.Context, client *GitHubClient) error
- func GetVersion(c echo.Context) error
- func PostDeviceCode(c echo.Context, client *GitHubClient) error
- func PostDeviceToken(c echo.Context, client *GitHubClient) error
- type DeviceCodeResponse
- type GitHubClient
- type GithubRelease
- type OAuthResponse
- type ServerInfo
- type VersionService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGithubOAuth ¶
func GetGithubOAuth(c echo.Context, client *GitHubClient) error
func GetOAuthCallback ¶
func GetOAuthCallback(c echo.Context, client *GitHubClient) error
func PostDeviceCode ¶
func PostDeviceCode(c echo.Context, client *GitHubClient) error
func PostDeviceToken ¶
func PostDeviceToken(c echo.Context, client *GitHubClient) error
Types ¶
type DeviceCodeResponse ¶
type DeviceCodeResponse struct {
DeviceCode string `json:"device_code"`
UserCode string `json:"user_code"`
VerificationURI string `json:"verification_uri"`
VerificationURIComplete string `json:"verification_uri_complete"`
ExpiresIn int `json:"expires_in"`
Interval int `json:"interval"`
}
DeviceCodeResponse represents the response from the device code endpoint
type GitHubClient ¶
type GithubRelease ¶
type GithubRelease struct {
TagName string `json:"tag_name"`
}
type OAuthResponse ¶
type ServerInfo ¶
type VersionService ¶
type VersionService struct {
// contains filtered or unexported fields
}
VersionService handles version checking and scheduling
func NewVersionService ¶
func NewVersionService() *VersionService
func (*VersionService) Start ¶
func (vs *VersionService) Start()
func (*VersionService) Stop ¶
func (vs *VersionService) Stop()
Click to show internal directories.
Click to hide internal directories.