Documentation ¶
Overview ¶
Package server provides a simple HTTP server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StatusResponse ¶
type StatusResponse struct { // Hostname is a hostname of the server Hostname string `json:"hostname"` // StartedTimestamp is a timestamp when server was started StartedTimestamp int64 `json:"started_timestamp"` // Uptime is a number of seconds since server was started Uptime int64 `json:"uptime"` }
StatusResponse is a response for /status endpoint
Click to show internal directories.
Click to hide internal directories.