Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Instruction Instruction Data string }
Command from user to the App.
type Instruction ¶
type Instruction int
Instruction from user to the App.
const ( Pause Instruction = iota Resume RunTests )
type Server ¶
type Server struct { Commands chan *Command // contains filtered or unexported fields }
Server for serving web UI and API.
func (*Server) AddResult ¶
AddResult to be served via the API.
Prepends the result to the internal result slice. Slice is trimmed if its length exceeds configured max results.
func (*Server) Reset ¶
func (s *Server) Reset()
Reset server to initial state.
Sets the state to state.Init, clears results, and closes all long poll subscriptions.
Note: This is mainly used for testing purposes.
func (*Server) SendNotification ¶
SendNotification to display as a toaster message in the web UI.
Click to show internal directories.
Click to hide internal directories.