2015-04-08 05:46:05 +00:00
|
|
|
package eventbus
|
|
|
|
|
2015-04-08 05:47:40 +00:00
|
|
|
import "github.com/drone/drone/common"
|
2015-04-08 05:46:05 +00:00
|
|
|
|
|
|
|
type Event struct {
|
2015-04-25 00:06:46 +00:00
|
|
|
Build *common.Build `json:"build,omitempty"`
|
|
|
|
Repo *common.Repo `json:"repo,omitempty"`
|
|
|
|
Task *common.Task `json:"task,omitempty"`
|
2015-04-08 05:46:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Bus interface {
|
|
|
|
Subscribe(chan *Event)
|
|
|
|
Unsubscribe(chan *Event)
|
|
|
|
Send(*Event)
|
|
|
|
}
|