Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterEchoHandler(handler EchoHandler) server.RegistrationFunc
- type DRPCEchoDescription
- type DRPCEchoServer
- type DRPCEchoUnimplementedServer
- type DRPCEcho_EchoStream
- type EchoClient
- type EchoHandler
- type EchoServer
- type Req
- type Resp
- type UnimplementedEchoServer
- type UnsafeEchoServer
Constants ¶
const (
Echo_Echo_FullMethodName = "/echo.Echo/Echo"
)
const HandlerEcho = "echo.Echo"
HandlerEcho is the name of a service, it's here to static type/reference.
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 RegisterEchoHandler ¶
func RegisterEchoHandler(handler EchoHandler) server.RegistrationFunc
RegisterEchoHandler will return a registration function that can be provided to entrypoints as a handler registration.
Types ¶
type DRPCEchoDescription ¶
type DRPCEchoDescription struct{}
func (DRPCEchoDescription) NumMethods ¶
func (DRPCEchoDescription) NumMethods() int
type DRPCEchoUnimplementedServer ¶
type DRPCEchoUnimplementedServer struct{}
type DRPCEcho_EchoStream ¶
type EchoClient ¶
type EchoClient struct {
// contains filtered or unexported fields
}
EchoClient is the client for echo.Echo
func NewEchoClient ¶
func NewEchoClient(client client.Client) *EchoClient
NewEchoClient creates a new client for echo.Echo
type EchoHandler ¶
EchoHandler is the Handler for echo.Echo
type EchoServer ¶
EchoServer is the server API for Echo service. All implementations should 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 should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
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.