Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Enabled bool
Host string `json:",optional"`
Port int
MetricsPath string
HealthPath string
EnableMetrics bool
EnablePprof bool
HealthResponse string
}
Config is config for inner http server.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns Hexas development server defaults.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an inner http server, expose some useful observability information of app. For example, health check, metrics and pprof.
func (*Server) StartAsync ¶
StartAsync start inner http server background.
Click to show internal directories.
Click to hide internal directories.