discover

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type UnimplementedDiscoverServiceServer

type UnimplementedDiscoverServiceServer struct {
}

UnimplementedDiscoverServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDiscoverServiceServer) ServerInformation

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL