Documentation ¶
Index ¶
Constants ¶
const ( MessageStyleGeneric = iota MessageStyleSuccess MessageStyleError MessageStyleInput MessageStyleOutput MessageStyleGroup )
Variables ¶
This section is empty.
Functions ¶
func ReportError ¶
Types ¶
type ErrorEvent ¶
type ErrorEvent struct {
Error string
}
ErrorEvent represents a Sleep
func NewErrorEvent ¶
func NewErrorEvent(message string) *ErrorEvent
NewErrorEvent creates a new error event
type Event ¶
type Event interface { Type() string Package() string Value() interface{} Timestamp() time.Time Init() Event }
Represents a generic event
func NewEventWithInit ¶
NewEvent creates a new event
type Events ¶
type Events struct { Events []Event // contains filtered or unexported fields }
Events represents events
type RepeatedEvent ¶ added in v0.29.0
type RepeatedEvent struct {
// contains filtered or unexported fields
}
RepeatedEvent represents a generic repeated message
func NewRepeatedEvent ¶ added in v0.29.0
func NewRepeatedEvent(message, tag string) *RepeatedEvent
NewSleepEvent create a new sleep event
func (*RepeatedEvent) Message ¶ added in v0.29.0
func (e *RepeatedEvent) Message(repeated *Repeated) *Message
type RepeatedReporter ¶
RepeatedReporter represents a reporter that overrides current line (with \r)
type Reporter ¶
type Reporter interface { //Returns zero or more messages Messages() []*Message }
Reporter represents a reporter that can report tag messages
type RunnerInput ¶
type RunnerInput interface {
IsInput() bool
}
RunnerInput represent event storing runner input data, this interface enables matching runner in/out with failed validation (CLI)
type RunnerOutput ¶
type RunnerOutput interface {
IsOutput() bool
}
RunnerOutput represent event storing runner output data,this interface enables matching runner in/out with failed validation(CLI)
type SleepEvent ¶
type SleepEvent struct {
SleepTimeMs int
}
SleepEvent represents a Sleep
func NewSleepEvent ¶
func NewSleepEvent(sleepTimeMs int) *SleepEvent
NewSleepEvent create a new sleep event
func (*SleepEvent) Message ¶
func (e *SleepEvent) Message(repeated *Repeated) *Message