Documentation
¶
Index ¶
- Variables
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type UnimplementedUserServiceServer
- type UserReq
- type UserResp
- func (*UserResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserResp) GetAccount() string
- func (x *UserResp) GetId() uint32
- func (x *UserResp) GetName() string
- func (x *UserResp) GetUsername() string
- func (*UserResp) ProtoMessage()
- func (x *UserResp) ProtoReflect() protoreflect.Message
- func (x *UserResp) Reset()
- func (x *UserResp) String() string
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_auth_user_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServiceServer) GetUserInfoByToken ¶
type UserReq ¶
type UserReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UserReq) Descriptor
deprecated
func (*UserReq) ProtoMessage ¶
func (*UserReq) ProtoMessage()
func (*UserReq) ProtoReflect ¶
func (x *UserReq) ProtoReflect() protoreflect.Message
type UserResp ¶
type UserResp struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UserResp) Descriptor
deprecated
func (*UserResp) GetAccount ¶
func (*UserResp) GetUsername ¶
func (*UserResp) ProtoMessage ¶
func (*UserResp) ProtoMessage()
func (*UserResp) ProtoReflect ¶
func (x *UserResp) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface {
GetUserInfoByToken(ctx context.Context, in *UserReq, opts ...grpc.CallOption) (*UserResp, error)
}
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
Click to show internal directories.
Click to hide internal directories.