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.
func (*Client) Query ¶
func (c *Client) Query(ctx context.Context, method string, prefix types.EndpointPrefix, path *api.URL, in any, out any) error
Query is a helper for initiating a request on any endpoints defined external to Microcluster. This function should be used for all client methods defined externally from MicroCluster.
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.