woodpecker/eventbus/bus.go
2015-04-07 22:47:40 -07:00

15 lines
229 B
Go

package eventbus
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)
}