Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DiscoverService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "service.DiscoverService", HandlerType: (*DiscoverServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ServerInformation", Handler: _DiscoverService_ServerInformation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "services/discover/discover.proto", }
DiscoverService_ServiceDesc is the grpc.ServiceDesc for DiscoverService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_services_discover_discover_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDiscoverServiceServer ¶
func RegisterDiscoverServiceServer(s grpc.ServiceRegistrar, srv DiscoverServiceServer)
Types ¶
type DiscoverServiceClient ¶
type DiscoverServiceClient interface {
ServerInformation(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*types.ServerInfo, error)
}
DiscoverServiceClient is the client API for DiscoverService 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 NewDiscoverServiceClient ¶
func NewDiscoverServiceClient(cc grpc.ClientConnInterface) DiscoverServiceClient
type DiscoverServiceServer ¶
type DiscoverServiceServer interface { ServerInformation(context.Context, *Empty) (*types.ServerInfo, error) // contains filtered or unexported methods }
DiscoverServiceServer is the server API for DiscoverService service. All implementations must embed UnimplementedDiscoverServiceServer for forward compatibility
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type UnimplementedDiscoverServiceServer ¶
type UnimplementedDiscoverServiceServer struct { }
UnimplementedDiscoverServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDiscoverServiceServer) ServerInformation ¶
func (UnimplementedDiscoverServiceServer) ServerInformation(context.Context, *Empty) (*types.ServerInfo, error)
type UnsafeDiscoverServiceServer ¶
type UnsafeDiscoverServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDiscoverServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DiscoverServiceServer will result in compilation errors.