Documentation ¶
Index ¶
- Variables
- func RegisterRegistryServer(s grpc.ServiceRegistrar, srv RegistryServer)
- type RegisterServiceReply
- func (*RegisterServiceReply) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterServiceReply) GetError() string
- func (*RegisterServiceReply) ProtoMessage()
- func (x *RegisterServiceReply) ProtoReflect() protoreflect.Message
- func (x *RegisterServiceReply) Reset()
- func (x *RegisterServiceReply) String() string
- type RegisterServiceRequest
- func (*RegisterServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterServiceRequest) GetName() string
- func (*RegisterServiceRequest) ProtoMessage()
- func (x *RegisterServiceRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterServiceRequest) Reset()
- func (x *RegisterServiceRequest) String() string
- type RegistryClient
- type RegistryServer
- type UnimplementedRegistryServer
- type UnsafeRegistryServer
Constants ¶
This section is empty.
Variables ¶
var File_registry_proto protoreflect.FileDescriptor
var Registry_ServiceDesc = grpc.ServiceDesc{ ServiceName: "registry.Registry", HandlerType: (*RegistryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterService", Handler: _Registry_RegisterService_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "registry.proto", }
Registry_ServiceDesc is the grpc.ServiceDesc for Registry service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRegistryServer ¶
func RegisterRegistryServer(s grpc.ServiceRegistrar, srv RegistryServer)
Types ¶
type RegisterServiceReply ¶
type RegisterServiceReply struct { Error string `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*RegisterServiceReply) Descriptor
deprecated
func (*RegisterServiceReply) Descriptor() ([]byte, []int)
Deprecated: Use RegisterServiceReply.ProtoReflect.Descriptor instead.
func (*RegisterServiceReply) GetError ¶
func (x *RegisterServiceReply) GetError() string
func (*RegisterServiceReply) ProtoMessage ¶
func (*RegisterServiceReply) ProtoMessage()
func (*RegisterServiceReply) ProtoReflect ¶
func (x *RegisterServiceReply) ProtoReflect() protoreflect.Message
func (*RegisterServiceReply) Reset ¶
func (x *RegisterServiceReply) Reset()
func (*RegisterServiceReply) String ¶
func (x *RegisterServiceReply) String() string
type RegisterServiceRequest ¶
type RegisterServiceRequest struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*RegisterServiceRequest) Descriptor
deprecated
func (*RegisterServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterServiceRequest.ProtoReflect.Descriptor instead.
func (*RegisterServiceRequest) GetName ¶
func (x *RegisterServiceRequest) GetName() string
func (*RegisterServiceRequest) ProtoMessage ¶
func (*RegisterServiceRequest) ProtoMessage()
func (*RegisterServiceRequest) ProtoReflect ¶
func (x *RegisterServiceRequest) ProtoReflect() protoreflect.Message
func (*RegisterServiceRequest) Reset ¶
func (x *RegisterServiceRequest) Reset()
func (*RegisterServiceRequest) String ¶
func (x *RegisterServiceRequest) String() string
type RegistryClient ¶
type RegistryClient interface {
RegisterService(ctx context.Context, in *RegisterServiceRequest, opts ...grpc.CallOption) (*RegisterServiceReply, error)
}
RegistryClient is the client API for Registry 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 NewRegistryClient ¶
func NewRegistryClient(cc grpc.ClientConnInterface) RegistryClient
type RegistryServer ¶
type RegistryServer interface { RegisterService(context.Context, *RegisterServiceRequest) (*RegisterServiceReply, error) // contains filtered or unexported methods }
RegistryServer is the server API for Registry service. All implementations must embed UnimplementedRegistryServer for forward compatibility
type UnimplementedRegistryServer ¶
type UnimplementedRegistryServer struct { }
UnimplementedRegistryServer must be embedded to have forward compatible implementations.
func (UnimplementedRegistryServer) RegisterService ¶
func (UnimplementedRegistryServer) RegisterService(context.Context, *RegisterServiceRequest) (*RegisterServiceReply, error)
type UnsafeRegistryServer ¶
type UnsafeRegistryServer interface {
// contains filtered or unexported methods
}
UnsafeRegistryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RegistryServer will result in compilation errors.