dash

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 12 Imported by: 0

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 LogMessage struct {
	MsgType string `json:"msgType"`
	Ts      int64  `json:"ts"`
	Msg     string `json:"msg"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL