Documentation ¶
Overview ¶
Package adapter provides gRPC adapters between client and server gRPC interfaces without needing to go through a gRPC connection.
Index ¶
- func AuthServerToAuthClient(as pb.AuthServer) pb.AuthClient
- func ClusterServerToClusterClient(cls pb.ClusterServer) pb.ClusterClient
- func ElectionServerToElectionClient(es v3electionpb.ElectionServer) v3electionpb.ElectionClient
- func KvServerToKvClient(kvs pb.KVServer) pb.KVClient
- func LeaseServerToLeaseClient(ls pb.LeaseServer) pb.LeaseClient
- func LockServerToLockClient(ls v3lockpb.LockServer) v3lockpb.LockClient
- func MaintenanceServerToMaintenanceClient(mts pb.MaintenanceServer) pb.MaintenanceClient
- func WatchServerToWatchClient(wserv pb.WatchServer) pb.WatchClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthServerToAuthClient ¶ added in v3.3.0
func AuthServerToAuthClient(as pb.AuthServer) pb.AuthClient
func ClusterServerToClusterClient ¶
func ClusterServerToClusterClient(cls pb.ClusterServer) pb.ClusterClient
func ElectionServerToElectionClient ¶
func ElectionServerToElectionClient(es v3electionpb.ElectionServer) v3electionpb.ElectionClient
func LeaseServerToLeaseClient ¶
func LeaseServerToLeaseClient(ls pb.LeaseServer) pb.LeaseClient
func LockServerToLockClient ¶
func LockServerToLockClient(ls v3lockpb.LockServer) v3lockpb.LockClient
func MaintenanceServerToMaintenanceClient ¶
func MaintenanceServerToMaintenanceClient(mts pb.MaintenanceServer) pb.MaintenanceClient
func WatchServerToWatchClient ¶
func WatchServerToWatchClient(wserv pb.WatchServer) pb.WatchClient
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.