Documentation ¶
Overview ¶
Package user is a generated protocol buffer package.
It is generated from these files:
user.proto
It has these top-level messages:
UserRequest UserResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserServer ¶
func RegisterUserServer(s *grpc.Server, srv UserServer)
Types ¶
type UserClient ¶
type UserClient interface {
GetGrade(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
}
func NewUserClient ¶
func NewUserClient(cc *grpc.ClientConn) UserClient
type UserRequest ¶
type UserRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*UserRequest) Descriptor ¶
func (*UserRequest) Descriptor() ([]byte, []int)
func (*UserRequest) GetName ¶
func (m *UserRequest) GetName() string
func (*UserRequest) ProtoMessage ¶
func (*UserRequest) ProtoMessage()
func (*UserRequest) Reset ¶
func (m *UserRequest) Reset()
func (*UserRequest) String ¶
func (m *UserRequest) String() string
type UserResponse ¶
type UserResponse struct {
Response string `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
func (*UserResponse) Descriptor ¶
func (*UserResponse) Descriptor() ([]byte, []int)
func (*UserResponse) GetResponse ¶
func (m *UserResponse) GetResponse() string
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) Reset ¶
func (m *UserResponse) Reset()
func (*UserResponse) String ¶
func (m *UserResponse) String() string
type UserServer ¶
type UserServer interface {
GetGrade(context.Context, *UserRequest) (*UserResponse, error)
}
Click to show internal directories.
Click to hide internal directories.