1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-12 08:23:48 +02:00
woodpecker/eventbus/bus.go

16 lines
304 B
Go
Raw Normal View History

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