Versions in this module Expand all Collapse all v0 v0.4.2 Apr 28, 2016 Changes in this version + func Publish(c context.Context, event *Event) + func Subscribe(c context.Context, eventc chan *Event) + func ToContext(c Setter, b Bus) + func Unsubscribe(c context.Context, eventc chan *Event) + type Bus interface + Publish func(*Event) + Subscribe func(chan *Event) + Unsubscribe func(chan *Event) + func FromContext(c context.Context) Bus + func New() Bus + type Event struct + Build model.Build + Job model.Job + Repo model.Repo + Type EventType + func NewBuildEvent(t EventType, r *model.Repo, b *model.Build) *Event + func NewEvent(t EventType, r *model.Repo, b *model.Build, j *model.Job) *Event + type EventType string + const Cancelled + const Enqueued + const Finished + const Started + type Setter interface + Set func(string, interface{})