1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-01-11 17:18:09 +02:00
woodpecker/pkg/bus/bus.go
2015-05-17 11:10:43 -07:00

20 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)
}