Documentation
¶
Index ¶
- Variables
- type Config
- type Grid
- func (g *Grid) AddEndpoint(path []string, connFunc func() (*transport.Connection, error)) error
- func (g *Grid) DeleteEndpoint(path []string) error
- func (g *Grid) Invoke(ctx context.Context, method string, args any, reply any, ...) error
- func (g *Grid) NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, ...) (grpc.ClientStream, error)
- type OneEndpointConfig
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Grid ¶
type Grid struct { *balancing.Tree[*transport.Connection, transport.Connection] // contains filtered or unexported fields }
func NewWithOneEndpoint ¶
func NewWithOneEndpoint(cfg OneEndpointConfig) *Grid
func NewWithStaticEndpoints ¶
func NewWithStaticEndpoints( ctx context.Context, endpoints []string, creds credentials.TransportCredentials, auth transport.Authenticator, db string, ) (*Grid, error)
func NewWithThreeLevels ¶
func NewWithTwoLevels ¶
func (*Grid) AddEndpoint ¶
func (*Grid) DeleteEndpoint ¶
func (*Grid) NewStream ¶
func (g *Grid) NewStream( ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption, ) (grpc.ClientStream, error)
type OneEndpointConfig ¶
type OneEndpointConfig struct { ConnFunc func() (*transport.Connection, error) ConnectionsNumber int }
Click to show internal directories.
Click to hide internal directories.