event

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2017 License: GPL-3.0, GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRegistry

func InitRegistry()

func Notify

func Notify(e ExecutionEvent)

Notify notifies all the subscribers of the event about its occurrence

func Register

func Register(ch chan ExecutionEvent, topics ...Topic)

Register registers the given channel to the given list of topics. Any updates for the given topics will be sent on this channel

Types

type ExecutionEvent

type ExecutionEvent struct {
	Topic         Topic
	Item          gauge.Item
	Result        result.Result
	Stream        int
	ExecutionInfo gauge_messages.ExecutionInfo
}

ExecutionEvent represents an event raised during various phases of the execution lifecycle. This is only for execution and excludes parsing, validation, etc.

func NewExecutionEvent

func NewExecutionEvent(t Topic, i gauge.Item, r result.Result, stream int, executionInfo gauge_messages.ExecutionInfo) ExecutionEvent

type Topic

type Topic int

Topic indicates the topic of ExecutionEvent

const (
	SuiteStart Topic = iota
	SpecStart
	ScenarioStart
	ConceptStart
	StepStart
	StepEnd
	ConceptEnd
	ScenarioEnd
	SpecEnd
	SuiteEnd
)

Jump to

Keyboard shortcuts

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