Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct { ID string State CheckState }
Check defines the relevant informartion for the runtime that executes and monitors checks.
type CheckState ¶
type CheckState struct { Status string `json:"status,omitempty"` Progress float32 `json:"progress,omitempty"` Report vulcanreport.Report `json:"report,omitempty"` Error string `json:"error,omitempty"` }
CheckState defines the fields of a check relevant during its execution.
type SimpleMQ ¶
type SimpleMQ struct { Addr string Path string Queue []Message Srv *http.Server sync.Mutex // contains filtered or unexported fields }
SimpleMQ is a very simple queue.
func (*SimpleMQ) ListenAndServe ¶
ListenAndServe starts de queue, it blocks the calling goroutine.
type SimpleMQClientServer ¶
type SimpleMQClientServer struct { Addr string // contains filtered or unexported fields }
func NewSimpleMQClientServer ¶
func NewSimpleMQClientServer() (SimpleMQClientServer, error)
func (SimpleMQClientServer) Dequeue ¶
func (s SimpleMQClientServer) Dequeue() (*Check, error)
func (SimpleMQClientServer) Enqueue ¶
func (s SimpleMQClientServer) Enqueue(c Check) error
func (SimpleMQClientServer) Start ¶
func (s SimpleMQClientServer) Start() error
func (SimpleMQClientServer) Stop ¶
func (s SimpleMQClientServer) Stop() error
Click to show internal directories.
Click to hide internal directories.