Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLAChan ¶
type CLAChan chan *cp.ClusterLoadAssignment
type Event ¶
type Event struct { CLA []*cp.ClusterLoadAssignment Clusters []*cp.Cluster Routes []*cp.RouteConfiguration }
type Hub ¶
type Hub interface { Subscribe() *Subscription Publish(event *Event) Size() int }
type Subscription ¶
type Subscription struct { ID uuid.UUID Events EventChan OnClose func(uuid.UUID) }
Subscription is a unique channel of ClusterLoadAssignments
func (Subscription) Accept ¶
func (s Subscription) Accept(e *Event)
func (Subscription) Close ¶
func (s Subscription) Close()
Click to show internal directories.
Click to hide internal directories.