Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_user_proto protoreflect.FileDescriptor
View Source
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RpcUserLogin", Handler: _User_RpcUserLogin_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type Login ¶
type Login struct { Account string `protobuf:"bytes,1,opt,name=Account,proto3" json:"Account,omitempty"` Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"` // contains filtered or unexported fields }
func (*Login) Descriptor
deprecated
func (*Login) GetAccount ¶
func (*Login) GetPassword ¶
func (*Login) ProtoMessage ¶
func (*Login) ProtoMessage()
func (*Login) ProtoReflect ¶
func (x *Login) ProtoReflect() protoreflect.Message
type LoginAck ¶
type LoginAck struct { Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"` // contains filtered or unexported fields }
func (*LoginAck) Descriptor
deprecated
func (*LoginAck) ProtoMessage ¶
func (*LoginAck) ProtoMessage()
func (*LoginAck) ProtoReflect ¶
func (x *LoginAck) ProtoReflect() protoreflect.Message
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) RpcUserLogin ¶
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UserClient ¶
type UserClient interface {
RpcUserLogin(ctx context.Context, in *Login, opts ...grpc.CallOption) (*LoginAck, error)
}
UserClient is the client API for User service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
Click to show internal directories.
Click to hide internal directories.