minimal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 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 OAuthConfig

type OAuthConfig struct {
	App struct {
		ID     string   `env:"ID,notEmpty"`
		Secret string   `env:"SECRET,notEmpty" envDefault:"changeme"`
		Scopes []string `env:"SCOPES" envSeparator:" "`
	} `envPrefix:"APP_"`

	Auth struct {
		Redirect struct {
			External      string `env:"EXTERNAL_URL" envDefault:"http://localhost/"`
			InternalRoute string `env:"INTERNAL_ROUTE" envDefault:""`
		} `envPrefix:"REDIRECT_"`
	} `envPrefix:"AUTH_"`

	GitHubIssueTesting struct {
		Foo string `env:"FOO" envDefault:""`
		Bar string `env:"BAR" envDefault:"abc"`
	} `envPrefix:"TESTING_"`
}

OAuthConfig holds configuration for OAuth clients and auth redirects.

Jump to

Keyboard shortcuts

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