Documentation ¶
Index ¶
Constants ¶
const ( DiscoveryService_ListEndpoints_FullMethodName = "/Ydb.Discovery.V1.DiscoveryService/ListEndpoints" DiscoveryService_WhoAmI_FullMethodName = "/Ydb.Discovery.V1.DiscoveryService/WhoAmI" )
Variables ¶
var DiscoveryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Ydb.Discovery.V1.DiscoveryService", HandlerType: (*DiscoveryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListEndpoints", Handler: _DiscoveryService_ListEndpoints_Handler, }, { MethodName: "WhoAmI", Handler: _DiscoveryService_WhoAmI_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "ydb_discovery_v1.proto", }
DiscoveryService_ServiceDesc is the grpc.ServiceDesc for DiscoveryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_ydb_discovery_v1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDiscoveryServiceServer ¶
func RegisterDiscoveryServiceServer(s grpc.ServiceRegistrar, srv DiscoveryServiceServer)
Types ¶
type DiscoveryServiceClient ¶
type DiscoveryServiceClient interface { ListEndpoints(ctx context.Context, in *Ydb_Discovery.ListEndpointsRequest, opts ...grpc.CallOption) (*Ydb_Discovery.ListEndpointsResponse, error) WhoAmI(ctx context.Context, in *Ydb_Discovery.WhoAmIRequest, opts ...grpc.CallOption) (*Ydb_Discovery.WhoAmIResponse, error) }
DiscoveryServiceClient is the client API for DiscoveryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDiscoveryServiceClient ¶
func NewDiscoveryServiceClient(cc grpc.ClientConnInterface) DiscoveryServiceClient
type DiscoveryServiceServer ¶
type DiscoveryServiceServer interface { ListEndpoints(context.Context, *Ydb_Discovery.ListEndpointsRequest) (*Ydb_Discovery.ListEndpointsResponse, error) WhoAmI(context.Context, *Ydb_Discovery.WhoAmIRequest) (*Ydb_Discovery.WhoAmIResponse, error) // contains filtered or unexported methods }
DiscoveryServiceServer is the server API for DiscoveryService service. All implementations must embed UnimplementedDiscoveryServiceServer for forward compatibility
type UnimplementedDiscoveryServiceServer ¶
type UnimplementedDiscoveryServiceServer struct { }
UnimplementedDiscoveryServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDiscoveryServiceServer) ListEndpoints ¶
func (UnimplementedDiscoveryServiceServer) ListEndpoints(context.Context, *Ydb_Discovery.ListEndpointsRequest) (*Ydb_Discovery.ListEndpointsResponse, error)
func (UnimplementedDiscoveryServiceServer) WhoAmI ¶
func (UnimplementedDiscoveryServiceServer) WhoAmI(context.Context, *Ydb_Discovery.WhoAmIRequest) (*Ydb_Discovery.WhoAmIResponse, error)
type UnsafeDiscoveryServiceServer ¶
type UnsafeDiscoveryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDiscoveryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DiscoveryServiceServer will result in compilation errors.