mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 05:41:12 +00:00
15 lines
304 B
Go
15 lines
304 B
Go
package eventbus
|
|
|
|
import "github.com/drone/drone/common"
|
|
|
|
type Event struct {
|
|
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)
|
|
}
|