configbindfixture

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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).

Jump to

Keyboard shortcuts

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