Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
TemplatesPath string `env:"TEMPLATES_PATH" envDefault:"cmd/testdata/"`
RenderTimeout time.Duration `env:"RENDER_TIMEOUT" envDefault:"10s"`
ServerHost string `env:"SERVER_HOST" envDefault:"localhost"`
ServerPort int `env:"SERVER_PORT" envDefault:"8080"`
ViewportHeight int `env:"VIEWPORT_HEIGHT" envDefault:"2048"`
ViewportWidth int `env:"VIEWPORT_WIDTH" envDefault:"1920"`
}
func ParseConfig ¶
Click to show internal directories.
Click to hide internal directories.