Documentation
¶
Overview ¶
Package connection manages persistent gRPC connections to nstance-server zone shards.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages persistent gRPC connections to all zone shards
func NewManager ¶
NewManager creates a new connection manager
func (*Manager) GetAllConnections ¶
func (m *Manager) GetAllConnections() map[string]*grpc.ClientConn
GetAllConnections returns all shard connections.
func (*Manager) GetConnection ¶
GetConnection returns a gRPC connection to any available shard.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider provides access to shard connections. It can be created before connections are established and populated later, allowing controllers to be set up before the manager starts while still receiving connections after registration completes.
Click to show internal directories.
Click to hide internal directories.