Documentation ¶
Overview ¶
Code generated from Pkl module `HttpConfig`. DO NOT EDIT.
Code generated from Pkl module `HttpConfig`. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpConfig ¶
type HttpConfig struct { // Service HTTP Name ServiceName string `pkl:"serviceName"` // Service HTTP Domain Domain string `pkl:"domain"` // Service HTTP Host Host string `pkl:"host"` // Service HTTP Port Port int `pkl:"port"` // Service HTTP Idle Timeout IdleTimeout int `pkl:"idleTimeout"` // Service HTTP Read Header Timeout ReadHeaderTimeout int `pkl:"readHeaderTimeout"` // Service HTTP Read Timeout ReadTimeout int `pkl:"readTimeout"` // Service HTTP Write Timeout WriteTimeout int `pkl:"writeTimeout"` // Service HTTP Handler Timeout HandlerTimeout int `pkl:"handlerTimeout"` }
func Load ¶
func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*HttpConfig, error)
Load loads the pkl module at the given source and evaluates it with the given evaluator into a HttpConfig
func LoadFromPath ¶
func LoadFromPath(ctx context.Context, path string) (ret *HttpConfig, err error)
LoadFromPath loads the pkl module at the given path and evaluates it into a HttpConfig
Click to show internal directories.
Click to hide internal directories.