harness-drone/eventbus/bus.go

16 lines
229 B
Go
Raw Normal View History

package eventbus
2015-04-08 05:47:40 +00:00
import "github.com/drone/drone/common"
type Event struct {
Build *common.Build
Repo *common.Repo
Task *common.Task
}
type Bus interface {
Subscribe(chan *Event)
Unsubscribe(chan *Event)
Send(*Event)
}