github

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

type Github struct {
	// contains filtered or unexported fields
}

func New

func New(options options.Options, logger types.Logger) *Github

func (*Github) Register

func (g *Github) Register(prefixes []string, group huma.API)

type GithubCallbackRequest

type GithubCallbackRequest struct {
	Code  string `query:"code" required:"true" doc:"OAuth authorization code"`
	State string `query:"state" required:"true" doc:"OAuth state parameter"`
}

type GithubCallbackResponse

type GithubCallbackResponse struct {
	SessionCookie *http.Cookie `header:"Set-Cookie" doc:"session cookie"`
	Location      string       `header:"Location" required:"true" doc:"redirect to next URL"`
}

type GithubLoginRequest

type GithubLoginRequest struct {
	Next string `query:"next" required:"true" doc:"redirect URL after authentication"`
	Code string `query:"code" required:"false" minLength:"8" maxLength:"8" doc:"optional device flow code"`
}

type GithubLoginResponse

type GithubLoginResponse struct {
	Location string `header:"Location" required:"true" doc:"redirect to github OAuth"`
}

Jump to

Keyboard shortcuts

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