Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotification ¶
IsNotification determines if this request is to be considered a cluster-wide notification.
Types ¶
type Client ¶
Client is a rest client for the MicroCluster daemon.
type Cluster ¶
type Cluster []Client
Cluster is a list of clients belonging to a cluster.
func (Cluster) Query ¶
func (c Cluster) Query(ctx context.Context, concurrent bool, query func(context.Context, *Client) error) error
Query executes the given hook across all members of the cluster.
func (Cluster) SelectRandom ¶
SelectRandom returns a randomly selected client.
Click to show internal directories.
Click to hide internal directories.