1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-01-17 17:45:03 +02:00
2015-05-05 19:46:26 -07:00

20 lines
242 B
Go

package eventbus
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)
}