Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_hello_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMockServiceServer ¶
func RegisterMockServiceServer(s *grpc.Server, srv MockServiceServer)
Types ¶
type MockServiceClient ¶
type MockServiceClient interface {
MockServiceMethod(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
MockServiceClient is the client API for MockService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMockServiceClient ¶
func NewMockServiceClient(cc grpc.ClientConnInterface) MockServiceClient
type MockServiceServer ¶
type MockServiceServer interface {
MockServiceMethod(context.Context, *Request) (*Response, error)
}
MockServiceServer is the server API for MockService service.
type Request ¶
type Request struct { Req []byte `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Resp []byte `protobuf:"bytes,1,opt,name=resp,proto3" json:"resp,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedMockServiceServer ¶
type UnimplementedMockServiceServer struct { }
UnimplementedMockServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMockServiceServer) MockServiceMethod ¶
Click to show internal directories.
Click to hide internal directories.