commands

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Globals

type Globals struct {
	Logger        *slog.Logger
	SentryHandler func(http.Handler) http.Handler
}

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 */
}

func (*HTTPCmd) Run

func (c *HTTPCmd) Run(ctx context.Context, globals *Globals) error

type KeyGenCmd

type KeyGenCmd struct {
	Output string `help:"The output path of the generated key."`
}

func (*KeyGenCmd) Run

func (c *KeyGenCmd) Run(_ context.Context, globals *Globals) error

type MigrateCmd added in v0.5.0

type MigrateCmd struct {
	DatabaseURL string `help:"PostgreSQL connection string." env:"DATABASE_URL" required:""`
}

func (*MigrateCmd) Run added in v0.5.0

func (c *MigrateCmd) Run(ctx context.Context, globals *Globals) error

Jump to

Keyboard shortcuts

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