mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-06 08:16:19 +02:00
16 lines
229 B
Go
16 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)
|
|
}
|