Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error represents a handler error. It provides methods for a HTTP status code and embeds the built-in error interface.
type Server ¶
type Server struct {
LogFile string
Port int `valid:"range(1|65535)~'port' must be a valid port between 1-65535, required~Port must be specified"`
Router *httprouter.Router
MaxShutdownTime time.Duration
Info ServerInfo
IsHealthy int32
Verbose bool
}
Server describes the server configuration
type ServerInfo ¶ added in v0.0.4
ServerInfo contains some metadata about the server
type StatusError ¶
StatusError represents an error with an associated HTTP status code.
func (StatusError) Error ¶
func (se StatusError) Error() string
Allows StatusError to satisfy the error interface.
Click to show internal directories.
Click to hide internal directories.