Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Content embed.FS
)
Functions ¶
func Serve ¶
func Serve(port string, updates chan *ChainStatus, logs chan LogMessage, hideLogs bool)
Types ¶
type CacheHandler ¶
type CacheHandler struct{}
CacheHandler implements the Handler interface with a Cache-Control set on responses
func (CacheHandler) ServeHTTP ¶
func (ch CacheHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)
type ChainStatus ¶
type ChainStatus struct { MsgType string `json:"msgType"` Name string `json:"name"` ChainId string `json:"chain_id"` Moniker string `json:"moniker"` Bonded bool `json:"bonded"` Jailed bool `json:"jailed"` Tombstoned bool `json:"tombstoned"` Missed int64 `json:"missed"` Window int64 `json:"window"` Nodes int `json:"nodes"` HealthyNodes int `json:"healthy_nodes"` ActiveAlerts int `json:"active_alerts"` Height int64 `json:"height"` LastError string `json:"last_error"` Blocks []int `json:"blocks"` }
type LogMessage ¶
Click to show internal directories.
Click to hide internal directories.