Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigrateOptions ¶ added in v0.1.12
type MigrateOptions struct {
Path string `arg:"required" help:"migration path"`
Label string `arg:"optional" help:"migration label"`
DryRun bool `default:"false" help:"print changes without applying"`
Extra []string `arg:"*" help:"additional migration inputs"`
}
MigrateOptions is a CLI-only subcommand fixture.
func RegisterMigrate ¶ added in v0.1.12
func RegisterMigrate() *MigrateOptions
RegisterMigrate returns migrate options only when that CLI branch is selected.
type TLSConfig ¶
type TLSConfig struct {
Enabled bool `default:"false" help:"enable TLS"`
CertPath string `env:"TLS_CERT_FILE" help:"TLS certificate path"`
}
TLSConfig is nested under webserver.tls.
type WebServerConfig ¶
type WebServerConfig struct {
Port int `default:"8080" help:"HTTP listen port" opt:"port,p"`
Host string `default:"localhost" help:"listen host"`
CorsOrigins []string `help:"CORS origins"`
TLS TLSConfig
}
WebServerConfig is a Bind-style config used by generator and load tests.
func Register ¶
func Register() *WebServerConfig
Register returns Bind handles for Load tests (discovered by tinybind-gen).
Click to show internal directories.
Click to hide internal directories.