Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
Gateway is the main struct
func NewGateway ¶
NewGateway creates a Vulcain gateway instance
func NewGatewayFromEnv ¶
NewGatewayFromEnv creates a gateway using the configuration set in env vars
type Options ¶
type Options struct { Debug bool Addr string Upstream *url.URL MaxPushes int AcmeHosts []string AcmeCertDir string CertFile string KeyFile string ReadTimeout time.Duration WriteTimeout time.Duration Compress bool OpenAPIFile string }
Options stores the gateway's Options
func NewOptionsFromEnv ¶
NewOptionsFromEnv creates a new option instance from environment It returns an error if mandatory env env vars are missing
Click to show internal directories.
Click to hide internal directories.