Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_simple_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGripmockServer ¶
func RegisterGripmockServer(s *grpc.Server, srv GripmockServer)
Types ¶
type GripmockClient ¶
type GripmockClient interface { // simple unary method SayHello(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error) }
GripmockClient is the client API for Gripmock service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGripmockClient ¶
func NewGripmockClient(cc grpc.ClientConnInterface) GripmockClient
type GripmockServer ¶
type GripmockServer interface { // simple unary method SayHello(context.Context, *Request) (*Reply, error) }
GripmockServer is the server API for Gripmock service.
type Reply ¶
type Reply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` ReturnCode int32 `protobuf:"varint,2,opt,name=return_code,json=returnCode,proto3" json:"return_code,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func (*Reply) Descriptor
deprecated
func (*Reply) GetMessage ¶
func (*Reply) GetReturnCode ¶ added in v1.8.2
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶ added in v1.8.2
func (x *Reply) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶ added in v1.8.2
func (x *Request) ProtoReflect() protoreflect.Message
type UnimplementedGripmockServer ¶ added in v1.8.2
type UnimplementedGripmockServer struct { }
UnimplementedGripmockServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.