Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPCmd ¶
type HTTPCmd struct {
ListenAddr string `help:"The address to listen on." default:"localhost:8088" env:"HTTP_LISTEN_ADDR"`
BaseServerURL string `help:"The base URL of this server." default:"http://localhost:8088" env:"SERVER_URL"`
JWKPath string `help:"Path to the JSON web key used to sign auth tokens." required:""`
GitHubClientID string `help:"GitHub OAuth2 application client ID." env:"GITHUB_CLIENT_ID" required:""`
GitHubClientSecret string `help:"GitHub OAuth2 application client secret." env:"GITHUB_CLIENT_SECRET" required:""`
DatabaseURL string `help:"PostgreSQL connection string." env:"DATABASE_URL" required:""`
TokenEncryptionKey string `help:"Base64-encoded 32-byte key for encrypting stored GitHub tokens." env:"TOKEN_ENCRYPTION_KEY" required:""`
ShutdownTimeout time.Duration `help:"Maximum time to wait for in-flight requests before exiting." default:"30s" env:"SHUTDOWN_TIMEOUT"`
RefreshTokenGracePeriod time.Duration `` /* 133-byte string literal not displayed */
RetiredRefreshTokenRetention time.Duration `` /* 135-byte string literal not displayed */
}
type KeyGenCmd ¶
type KeyGenCmd struct {
Output string `help:"The output path of the generated key."`
}
type MigrateCmd ¶ added in v0.5.0
type MigrateCmd struct {
DatabaseURL string `help:"PostgreSQL connection string." env:"DATABASE_URL" required:""`
}
Click to show internal directories.
Click to hide internal directories.