mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 18:31:00 +00:00
19 lines
237 B
Go
19 lines
237 B
Go
package bus
|
|
|
|
const (
|
|
EventRepo = "repo"
|
|
EventUser = "user"
|
|
EventAgent = "agent"
|
|
)
|
|
|
|
type Event struct {
|
|
Kind string
|
|
Name string
|
|
Msg []byte
|
|
}
|
|
|
|
type Bus interface {
|
|
Subscribe(chan *Event)
|
|
Unsubscribe(chan *Event)
|
|
Send(*Event)
|
|
}
|