Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Content embed.FS
)
Functions ¶
func Serve ¶
func Serve(port string, updates chan *SequencerStatus, 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 LogMessage ¶
type SequencerStatus ¶
type SequencerStatus struct { MsgType string `json:"msgType"` Name string `json:"name"` Address string `json:"address"` Jailed bool `json:"jailed"` ActiveAlerts int `json:"active_alerts"` LastError string `json:"last_error"` IsProducing bool `json:"is_producing"` Epochs []int64 `json:"epochs"` Blocks []int `json:"blocks"` }
Click to show internal directories.
Click to hide internal directories.