Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PullChildren ¶
func PullChildren(ctx context.Context, conn *grpc.ClientConn, dialOpts ...grpc.DialOption) <-chan Change[Child]
PullChildren returns a channel of changes to the children of all nodes enrolled in the hub conn. The conn argument should be a connection to the hub. For each node a new connection (via grpc.Dial) will be made using the nodes address and the given dialOpts. Children sent via the returned channel will have their Conn field set to the new connection which can be used so long as that child is still a member of the hub cohort.
Types ¶
type NodeFetcher ¶
type NodeFetcher struct { gen.HubApiClient // contains filtered or unexported fields }
func (*NodeFetcher) Poll ¶
func (c *NodeFetcher) Poll(ctx context.Context, changes chan<- *gen.PullHubNodesResponse_Change) error
func (*NodeFetcher) Pull ¶
func (c *NodeFetcher) Pull(ctx context.Context, changes chan<- *gen.PullHubNodesResponse_Change) error
Click to show internal directories.
Click to hide internal directories.