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:""`
CIMDEnabled bool `help:"Enable OAuth Client ID Metadata Document support." env:"CIMD_ENABLED"`
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 */
UISessionIdleTTL time.Duration `help:"How long an inactive web UI session remains valid." default:"168h" env:"UI_SESSION_IDLE_TTL"`
UISessionTTL time.Duration `help:"Maximum lifetime of a web UI session." default:"720h" env:"UI_SESSION_TTL"`
EventBusName string `help:"EventBridge bus for privacy-safe wide events; empty disables publishing." env:"EVENT_BUS_NAME"`
Environment string `help:"Deployment environment included in wide events." default:"local" env:"ENVIRONMENT"`
}
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.