Documentation
¶
Overview ¶
Package events carries what happens to workspaces to whoever watches: a workspace made, changed, published, refused or removed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
Bus hands each event to every watcher of its workspace.
func (*Bus) Tell ¶
func (bus *Bus) Tell(event *gitdv1.WatchResponse)
Tell hands an event to every watcher of its workspace, stamped with the time now. A watcher too far behind is dropped, its events closed.
type Watcher ¶
type Watcher struct {
Events chan *gitdv1.WatchResponse
// contains filtered or unexported fields
}
Watcher is one watch: its events, and the workspaces it watches (every one when none).