View Source GRPC.Client.LoadBalancing behaviour (grpc v0.11.3)

Load balancing behaviour for gRPC clients.

This module defines the behaviour that load balancing strategies must implement.

Summary

Callbacks

@callback init(opts :: keyword()) :: {:ok, state :: any()} | {:error, reason :: any()}
@callback pick(state :: any()) ::
  {:ok, {host :: String.t(), port :: non_neg_integer()}, new_state :: any()}
  | {:error, reason :: any()}