Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_example_proto protoreflect.FileDescriptor
Functions ¶
func DRPCRegisterExample ¶
func DRPCRegisterExample(mux drpc.Mux, impl DRPCExampleServer) error
Types ¶
type DRPCExampleClient ¶
type DRPCExampleClient interface { DRPCConn() drpc.Conn Test(ctx context.Context, in *TestRequest) (*TestResponse, error) }
func NewDRPCExampleClient ¶
func NewDRPCExampleClient(cc drpc.Conn) DRPCExampleClient
type DRPCExampleDescription ¶
type DRPCExampleDescription struct{}
func (DRPCExampleDescription) NumMethods ¶
func (DRPCExampleDescription) NumMethods() int
type DRPCExampleServer ¶
type DRPCExampleServer interface {
Test(context.Context, *TestRequest) (*TestResponse, error)
}
type DRPCExampleUnimplementedServer ¶
type DRPCExampleUnimplementedServer struct{}
func (*DRPCExampleUnimplementedServer) Test ¶
func (s *DRPCExampleUnimplementedServer) Test(context.Context, *TestRequest) (*TestResponse, error)
type DRPCExample_TestStream ¶
type DRPCExample_TestStream interface { drpc.Stream SendAndClose(*TestResponse) error }
type TestRequest ¶
type TestRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*TestRequest) Descriptor
deprecated
func (*TestRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestRequest.ProtoReflect.Descriptor instead.
func (*TestRequest) GetMessage ¶
func (x *TestRequest) GetMessage() string
func (*TestRequest) ProtoMessage ¶
func (*TestRequest) ProtoMessage()
func (*TestRequest) ProtoReflect ¶
func (x *TestRequest) ProtoReflect() protoreflect.Message
func (*TestRequest) Reset ¶
func (x *TestRequest) Reset()
func (*TestRequest) String ¶
func (x *TestRequest) String() string
type TestResponse ¶
type TestResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*TestResponse) Descriptor
deprecated
func (*TestResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestResponse.ProtoReflect.Descriptor instead.
func (*TestResponse) GetMessage ¶
func (x *TestResponse) GetMessage() string
func (*TestResponse) ProtoMessage ¶
func (*TestResponse) ProtoMessage()
func (*TestResponse) ProtoReflect ¶
func (x *TestResponse) ProtoReflect() protoreflect.Message
func (*TestResponse) Reset ¶
func (x *TestResponse) Reset()
func (*TestResponse) String ¶
func (x *TestResponse) String() string
Click to show internal directories.
Click to hide internal directories.