fixture

package
v0.2.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyWebServiceConfig

func ApplyWebServiceConfig(dst *WebServiceConfig, doc minitoml.Document) error

ApplyWebServiceConfig maps intermediate document keys under prefix "webservice" onto dst.

Types

type ListenerConfig added in v0.2.0

type ListenerConfig struct {
	Addr string
	Port int
	TLS  TLSConfig
}

ListenerConfig is one element of an array of tables.

type TLSConfig

type TLSConfig struct {
	Enabled  bool
	CertPath string
}

TLSConfig is a nested config struct.

type WebServiceConfig

type WebServiceConfig struct {
	ListenAddr  string
	MaxConns    int
	CorsOrigins []string
	TLS         TLSConfig
	Listeners   []ListenerConfig
}

WebServiceConfig is a representative Bind-style config struct for codegen tests.

Jump to

Keyboard shortcuts

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