Documentation ¶
Index ¶
- Variables
- func RegisterStevenServer(s *grpc.Server, srv StevenServer)
- type StevenClient
- type StevenRequest
- func (*StevenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StevenRequest) GetAge() int32
- func (x *StevenRequest) GetName() string
- func (x *StevenRequest) GetSex() string
- func (*StevenRequest) ProtoMessage()
- func (x *StevenRequest) ProtoReflect() protoreflect.Message
- func (x *StevenRequest) Reset()
- func (x *StevenRequest) String() string
- type StevenResp
- type StevenServer
- type UnimplementedStevenServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_steven_proto protoreflect.FileDescriptor
Functions ¶
func RegisterStevenServer ¶
func RegisterStevenServer(s *grpc.Server, srv StevenServer)
Types ¶
type StevenClient ¶
type StevenClient interface {
SayHello(ctx context.Context, in *StevenRequest, opts ...grpc.CallOption) (*StevenResp, error)
}
StevenClient is the client API for Steven service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStevenClient ¶
func NewStevenClient(cc grpc.ClientConnInterface) StevenClient
type StevenRequest ¶
type StevenRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Sex string `protobuf:"bytes,2,opt,name=sex,proto3" json:"sex,omitempty"` Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"` // contains filtered or unexported fields }
func (*StevenRequest) Descriptor
deprecated
func (*StevenRequest) Descriptor() ([]byte, []int)
Deprecated: Use StevenRequest.ProtoReflect.Descriptor instead.
func (*StevenRequest) GetAge ¶
func (x *StevenRequest) GetAge() int32
func (*StevenRequest) GetName ¶
func (x *StevenRequest) GetName() string
func (*StevenRequest) GetSex ¶
func (x *StevenRequest) GetSex() string
func (*StevenRequest) ProtoMessage ¶
func (*StevenRequest) ProtoMessage()
func (*StevenRequest) ProtoReflect ¶
func (x *StevenRequest) ProtoReflect() protoreflect.Message
func (*StevenRequest) Reset ¶
func (x *StevenRequest) Reset()
func (*StevenRequest) String ¶
func (x *StevenRequest) String() string
type StevenResp ¶
type StevenResp struct { Issuccess int32 `protobuf:"varint,1,opt,name=issuccess,proto3" json:"issuccess,omitempty"` // contains filtered or unexported fields }
func (*StevenResp) Descriptor
deprecated
func (*StevenResp) Descriptor() ([]byte, []int)
Deprecated: Use StevenResp.ProtoReflect.Descriptor instead.
func (*StevenResp) GetIssuccess ¶
func (x *StevenResp) GetIssuccess() int32
func (*StevenResp) ProtoMessage ¶
func (*StevenResp) ProtoMessage()
func (*StevenResp) ProtoReflect ¶
func (x *StevenResp) ProtoReflect() protoreflect.Message
func (*StevenResp) Reset ¶
func (x *StevenResp) Reset()
func (*StevenResp) String ¶
func (x *StevenResp) String() string
type StevenServer ¶
type StevenServer interface {
SayHello(context.Context, *StevenRequest) (*StevenResp, error)
}
StevenServer is the server API for Steven service.
type UnimplementedStevenServer ¶
type UnimplementedStevenServer struct { }
UnimplementedStevenServer can be embedded to have forward compatible implementations.
func (*UnimplementedStevenServer) SayHello ¶
func (*UnimplementedStevenServer) SayHello(context.Context, *StevenRequest) (*StevenResp, error)
Click to show internal directories.
Click to hide internal directories.