Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeMessage ¶
func ServeMessage(w http.ResponseWriter, r *http.Request)
func ServeQRCode ¶
func ServeQRCode(w http.ResponseWriter, r *http.Request)
Types ¶
type LogServer ¶
type LogServer struct {
// contains filtered or unexported fields
}
func NewLogServer ¶
func (*LogServer) ServeHTTP ¶
func (ls *LogServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*LogServer) ServeLogWS ¶
func (ls *LogServer) ServeLogWS(w http.ResponseWriter, r *http.Request)
type ManualTrigger ¶
type ManualTrigger struct { Type definition.EventType Station string Name string }
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitor ¶
func NewMonitor(def *definition.Definition, st *state.State, mtch chan<- ManualTrigger) (m *Monitor)
NewMonitor creates a new sub-server for rendering monitor pages. mtch is the channel onto which the server should write any manual triggers invoked by the user.
func (*Monitor) OnEventChange ¶
OnEventChange receives notification of a new or updated event, and uses it to update the monitor.
Click to show internal directories.
Click to hide internal directories.