Documentation ¶
Index ¶
- Variables
- func RegisterAnyTestServiceServer(s *grpc.Server, srv AnyTestServiceServer)
- type AnyTestServiceClient
- type AnyTestServiceServer
- type SumReply
- type SumReplyData
- type SumRequest
- type SumRequestData
- func (*SumRequestData) Descriptor() ([]byte, []int)deprecated
- func (x *SumRequestData) GetA() int64
- func (x *SumRequestData) GetB() int64
- func (*SumRequestData) ProtoMessage()
- func (x *SumRequestData) ProtoReflect() protoreflect.Message
- func (x *SumRequestData) Reset()
- func (x *SumRequestData) String() string
- type UnimplementedAnyTestServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_any_test_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAnyTestServiceServer ¶
func RegisterAnyTestServiceServer(s *grpc.Server, srv AnyTestServiceServer)
Types ¶
type AnyTestServiceClient ¶
type AnyTestServiceClient interface {
Sum(ctx context.Context, in *SumRequest, opts ...grpc.CallOption) (*SumReply, error)
}
AnyTestServiceClient is the client API for AnyTestService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAnyTestServiceClient ¶
func NewAnyTestServiceClient(cc grpc.ClientConnInterface) AnyTestServiceClient
type AnyTestServiceServer ¶
type AnyTestServiceServer interface {
Sum(context.Context, *SumRequest) (*SumReply, error)
}
AnyTestServiceServer is the server API for AnyTestService service.
type SumReply ¶
type SumReply struct { Data *anypb.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SumReply) Descriptor
deprecated
func (*SumReply) ProtoMessage ¶
func (*SumReply) ProtoMessage()
func (*SumReply) ProtoReflect ¶
func (x *SumReply) ProtoReflect() protoreflect.Message
type SumReplyData ¶
type SumReplyData struct { V int64 `protobuf:"varint,1,opt,name=v,proto3" json:"v,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` // contains filtered or unexported fields }
func (*SumReplyData) Descriptor
deprecated
func (*SumReplyData) Descriptor() ([]byte, []int)
Deprecated: Use SumReplyData.ProtoReflect.Descriptor instead.
func (*SumReplyData) GetErr ¶
func (x *SumReplyData) GetErr() string
func (*SumReplyData) GetV ¶
func (x *SumReplyData) GetV() int64
func (*SumReplyData) ProtoMessage ¶
func (*SumReplyData) ProtoMessage()
func (*SumReplyData) ProtoReflect ¶
func (x *SumReplyData) ProtoReflect() protoreflect.Message
func (*SumReplyData) Reset ¶
func (x *SumReplyData) Reset()
func (*SumReplyData) String ¶
func (x *SumReplyData) String() string
type SumRequest ¶
type SumRequest struct { Data *anypb.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SumRequest) Descriptor
deprecated
func (*SumRequest) Descriptor() ([]byte, []int)
Deprecated: Use SumRequest.ProtoReflect.Descriptor instead.
func (*SumRequest) GetData ¶
func (x *SumRequest) GetData() *anypb.Any
func (*SumRequest) ProtoMessage ¶
func (*SumRequest) ProtoMessage()
func (*SumRequest) ProtoReflect ¶
func (x *SumRequest) ProtoReflect() protoreflect.Message
func (*SumRequest) Reset ¶
func (x *SumRequest) Reset()
func (*SumRequest) String ¶
func (x *SumRequest) String() string
type SumRequestData ¶
type SumRequestData struct { A int64 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"` B int64 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"` // contains filtered or unexported fields }
func (*SumRequestData) Descriptor
deprecated
func (*SumRequestData) Descriptor() ([]byte, []int)
Deprecated: Use SumRequestData.ProtoReflect.Descriptor instead.
func (*SumRequestData) GetA ¶
func (x *SumRequestData) GetA() int64
func (*SumRequestData) GetB ¶
func (x *SumRequestData) GetB() int64
func (*SumRequestData) ProtoMessage ¶
func (*SumRequestData) ProtoMessage()
func (*SumRequestData) ProtoReflect ¶
func (x *SumRequestData) ProtoReflect() protoreflect.Message
func (*SumRequestData) Reset ¶
func (x *SumRequestData) Reset()
func (*SumRequestData) String ¶
func (x *SumRequestData) String() string
type UnimplementedAnyTestServiceServer ¶
type UnimplementedAnyTestServiceServer struct { }
UnimplementedAnyTestServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAnyTestServiceServer) Sum ¶
func (*UnimplementedAnyTestServiceServer) Sum(context.Context, *SumRequest) (*SumReply, error)
Click to show internal directories.
Click to hide internal directories.