Documentation ¶
Index ¶
- Variables
- func DRPCRegisterEcho(mux drpc.Mux, impl DRPCEchoServer) error
- func OrbRegister(handler EchoServer) server.RegistrationFunc
- func RegisterEchoServer(s grpc.ServiceRegistrar, srv EchoServer)
- type DRPCEchoClient
- type DRPCEchoDescription
- type DRPCEchoServer
- type DRPCEchoUnimplementedServer
- type DRPCEcho_EchoStream
- type EchoClient
- type EchoServer
- type Req
- type Resp
- type UnimplementedEchoServer
- type UnsafeEchoServer
Constants ¶
This section is empty.
Variables ¶
var Echo_ServiceDesc = grpc.ServiceDesc{ ServiceName: "echo.Echo", HandlerType: (*EchoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Echo", Handler: _Echo_Echo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "echo/echo.proto", }
Echo_ServiceDesc is the grpc.ServiceDesc for Echo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_echo_echo_proto protoreflect.FileDescriptor
Functions ¶
func DRPCRegisterEcho ¶
func DRPCRegisterEcho(mux drpc.Mux, impl DRPCEchoServer) error
func OrbRegister ¶
func OrbRegister(handler EchoServer) server.RegistrationFunc
OrbRegister will return a registration function that can be provided to entrypoints as a handler registration.
func RegisterEchoServer ¶
func RegisterEchoServer(s grpc.ServiceRegistrar, srv EchoServer)
Types ¶
type DRPCEchoClient ¶
type DRPCEchoClient interface { DRPCConn() drpc.Conn Echo(ctx context.Context, in *Req) (*Resp, error) }
func NewDRPCEchoClient ¶
func NewDRPCEchoClient(cc drpc.Conn) DRPCEchoClient
type DRPCEchoDescription ¶
type DRPCEchoDescription struct{}
func (DRPCEchoDescription) NumMethods ¶
func (DRPCEchoDescription) NumMethods() int
type DRPCEchoUnimplementedServer ¶
type DRPCEchoUnimplementedServer struct{}
type DRPCEcho_EchoStream ¶
type EchoClient ¶
type EchoClient interface {
Echo(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Resp, error)
}
EchoClient is the client API for Echo 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 NewEchoClient ¶
func NewEchoClient(cc grpc.ClientConnInterface) EchoClient
type EchoServer ¶
type EchoServer interface { Echo(context.Context, *Req) (*Resp, error) // contains filtered or unexported methods }
EchoServer is the server API for Echo service. All implementations must embed UnimplementedEchoServer for forward compatibility
type Req ¶
type Req struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*Req) Descriptor
deprecated
func (*Req) GetPayload ¶
func (*Req) ProtoMessage ¶
func (*Req) ProtoMessage()
func (*Req) ProtoReflect ¶
func (x *Req) ProtoReflect() protoreflect.Message
type Resp ¶
type Resp struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*Resp) Descriptor
deprecated
func (*Resp) GetPayload ¶
func (*Resp) ProtoMessage ¶
func (*Resp) ProtoMessage()
func (*Resp) ProtoReflect ¶
func (x *Resp) ProtoReflect() protoreflect.Message
type UnimplementedEchoServer ¶
type UnimplementedEchoServer struct { }
UnimplementedEchoServer must be embedded to have forward compatible implementations.
type UnsafeEchoServer ¶
type UnsafeEchoServer interface {
// contains filtered or unexported methods
}
UnsafeEchoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EchoServer will result in compilation errors.