Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpServer ¶
type HttpServer struct {
cfg.BaseServer
Logger *zap.Logger
Server *http.Server
TLSConfig *tls.Config
// contains filtered or unexported fields
}
func (*HttpServer) Start ¶
func (h *HttpServer) Start() error
type HttpServerDefinition ¶
type HttpServerDefinition struct {
Listen string `hcl:"listen"`
TLS *cfg.TLSConfig `hcl:"tls,block"`
Auth *cfg.AuthConfig `hcl:"auth,block"`
Tracing hcl.Expression `hcl:"tracing,optional"`
Metrics hcl.Expression `hcl:"metrics,optional"`
DefRange hcl.Range `hcl:",def_range"`
StaticFiles []staticFilesDefinition `hcl:"files,block"`
Handlers []handlerDefinition `hcl:"handle,block"`
}
Click to show internal directories.
Click to hide internal directories.