Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.