Documentation ¶
Index ¶
- func RegisterStudentProtoServiceServer(s *grpc.Server, srv StudentProtoServiceServer)
- type MyRequest
- func (*MyRequest) Descriptor() ([]byte, []int)
- func (m *MyRequest) GetName() string
- func (*MyRequest) ProtoMessage()
- func (m *MyRequest) Reset()
- func (m *MyRequest) String() string
- func (m *MyRequest) XXX_DiscardUnknown()
- func (m *MyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MyRequest) XXX_Merge(src proto.Message)
- func (m *MyRequest) XXX_Size() int
- func (m *MyRequest) XXX_Unmarshal(b []byte) error
- type MyResponse
- func (*MyResponse) Descriptor() ([]byte, []int)
- func (m *MyResponse) GetRealname() string
- func (*MyResponse) ProtoMessage()
- func (m *MyResponse) Reset()
- func (m *MyResponse) String() string
- func (m *MyResponse) XXX_DiscardUnknown()
- func (m *MyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MyResponse) XXX_Merge(src proto.Message)
- func (m *MyResponse) XXX_Size() int
- func (m *MyResponse) XXX_Unmarshal(b []byte) error
- type StudentProtoServiceClient
- type StudentProtoServiceServer
- type UnimplementedStudentProtoServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStudentProtoServiceServer ¶
func RegisterStudentProtoServiceServer(s *grpc.Server, srv StudentProtoServiceServer)
Types ¶
type MyRequest ¶
type MyRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MyRequest) Descriptor ¶
func (*MyRequest) ProtoMessage ¶
func (*MyRequest) ProtoMessage()
func (*MyRequest) XXX_DiscardUnknown ¶
func (m *MyRequest) XXX_DiscardUnknown()
func (*MyRequest) XXX_Marshal ¶
func (*MyRequest) XXX_Unmarshal ¶
type MyResponse ¶
type MyResponse struct { Realname string `protobuf:"bytes,2,opt,name=realname,proto3" json:"realname,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MyResponse) Descriptor ¶
func (*MyResponse) Descriptor() ([]byte, []int)
func (*MyResponse) GetRealname ¶
func (m *MyResponse) GetRealname() string
func (*MyResponse) ProtoMessage ¶
func (*MyResponse) ProtoMessage()
func (*MyResponse) Reset ¶
func (m *MyResponse) Reset()
func (*MyResponse) String ¶
func (m *MyResponse) String() string
func (*MyResponse) XXX_DiscardUnknown ¶
func (m *MyResponse) XXX_DiscardUnknown()
func (*MyResponse) XXX_Marshal ¶
func (m *MyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MyResponse) XXX_Merge ¶
func (m *MyResponse) XXX_Merge(src proto.Message)
func (*MyResponse) XXX_Size ¶
func (m *MyResponse) XXX_Size() int
func (*MyResponse) XXX_Unmarshal ¶
func (m *MyResponse) XXX_Unmarshal(b []byte) error
type StudentProtoServiceClient ¶
type StudentProtoServiceClient interface {
GetName(ctx context.Context, in *MyRequest, opts ...grpc.CallOption) (*MyResponse, error)
}
StudentProtoServiceClient is the client API for StudentProtoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStudentProtoServiceClient ¶
func NewStudentProtoServiceClient(cc *grpc.ClientConn) StudentProtoServiceClient
type StudentProtoServiceServer ¶
type StudentProtoServiceServer interface {
GetName(context.Context, *MyRequest) (*MyResponse, error)
}
StudentProtoServiceServer is the server API for StudentProtoService service.
type UnimplementedStudentProtoServiceServer ¶
type UnimplementedStudentProtoServiceServer struct { }
UnimplementedStudentProtoServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedStudentProtoServiceServer) GetName ¶
func (*UnimplementedStudentProtoServiceServer) GetName(ctx context.Context, req *MyRequest) (*MyResponse, error)
Click to show internal directories.
Click to hide internal directories.