Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultShutdownTimeout = 10 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string `koanf:"host"`
Port int `koanf:"port"`
CORS CORS `koanf:"cors"`
ShutdownTimeout time.Duration `koanf:"shutdown_context_timeout"`
HideBanner bool `koanf:"hide_banner"`
HidePort bool `koanf:"hide_port"`
// Optional Otel middleware can be injected from outside.
OtelMiddleware echo.MiddlewareFunc
}
Click to show internal directories.
Click to hide internal directories.