| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 | // Code generated by protoc-gen-go. DO NOT EDIT.// source: pb/user.protopackage pbimport (	context "context"	fmt "fmt"	proto "github.com/golang/protobuf/proto"	grpc "google.golang.org/grpc"	codes "google.golang.org/grpc/codes"	status "google.golang.org/grpc/status"	math "math")// Reference imports to suppress errors if they are not otherwise used.var _ = proto.Marshalvar _ = fmt.Errorfvar _ = math.Inf// This is a compile-time assertion to ensure that this generated file// is compatible with the proto package it is being compiled against.// A compilation error at this line likely means your copy of the// proto package needs to be updated.const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto packagetype LoginRequest struct {	Username             string   `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"`	Password             string   `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`	XXX_NoUnkeyedLiteral struct{} `json:"-"`	XXX_unrecognized     []byte   `json:"-"`	XXX_sizecache        int32    `json:"-"`}func (m *LoginRequest) Reset()         { *m = LoginRequest{} }func (m *LoginRequest) String() string { return proto.CompactTextString(m) }func (*LoginRequest) ProtoMessage()    {}func (*LoginRequest) Descriptor() ([]byte, []int) {	return fileDescriptor_c4f917211a932270, []int{0}}func (m *LoginRequest) XXX_Unmarshal(b []byte) error {	return xxx_messageInfo_LoginRequest.Unmarshal(m, b)}func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {	return xxx_messageInfo_LoginRequest.Marshal(b, m, deterministic)}func (m *LoginRequest) XXX_Merge(src proto.Message) {	xxx_messageInfo_LoginRequest.Merge(m, src)}func (m *LoginRequest) XXX_Size() int {	return xxx_messageInfo_LoginRequest.Size(m)}func (m *LoginRequest) XXX_DiscardUnknown() {	xxx_messageInfo_LoginRequest.DiscardUnknown(m)}var xxx_messageInfo_LoginRequest proto.InternalMessageInfofunc (m *LoginRequest) GetUsername() string {	if m != nil {		return m.Username	}	return ""}func (m *LoginRequest) GetPassword() string {	if m != nil {		return m.Password	}	return ""}type LoginResponse struct {	Ret                  string   `protobuf:"bytes,1,opt,name=Ret,proto3" json:"Ret,omitempty"`	Err                  string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`	XXX_NoUnkeyedLiteral struct{} `json:"-"`	XXX_unrecognized     []byte   `json:"-"`	XXX_sizecache        int32    `json:"-"`}func (m *LoginResponse) Reset()         { *m = LoginResponse{} }func (m *LoginResponse) String() string { return proto.CompactTextString(m) }func (*LoginResponse) ProtoMessage()    {}func (*LoginResponse) Descriptor() ([]byte, []int) {	return fileDescriptor_c4f917211a932270, []int{1}}func (m *LoginResponse) XXX_Unmarshal(b []byte) error {	return xxx_messageInfo_LoginResponse.Unmarshal(m, b)}func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {	return xxx_messageInfo_LoginResponse.Marshal(b, m, deterministic)}func (m *LoginResponse) XXX_Merge(src proto.Message) {	xxx_messageInfo_LoginResponse.Merge(m, src)}func (m *LoginResponse) XXX_Size() int {	return xxx_messageInfo_LoginResponse.Size(m)}func (m *LoginResponse) XXX_DiscardUnknown() {	xxx_messageInfo_LoginResponse.DiscardUnknown(m)}var xxx_messageInfo_LoginResponse proto.InternalMessageInfofunc (m *LoginResponse) GetRet() string {	if m != nil {		return m.Ret	}	return ""}func (m *LoginResponse) GetErr() string {	if m != nil {		return m.Err	}	return ""}func init() {	proto.RegisterType((*LoginRequest)(nil), "pb.LoginRequest")	proto.RegisterType((*LoginResponse)(nil), "pb.LoginResponse")}func init() { proto.RegisterFile("pb/user.proto", fileDescriptor_c4f917211a932270) }var fileDescriptor_c4f917211a932270 = []byte{	// 173 bytes of a gzipped FileDescriptorProto	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2d, 0x48, 0xd2, 0x2f,	0x2d, 0x4e, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x52, 0x72, 0xe3,	0xe2, 0xf1, 0xc9, 0x4f, 0xcf, 0xcc, 0x0b, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x11, 0x92, 0xe2,	0xe2, 0x08, 0x2d, 0x4e, 0x2d, 0xca, 0x4b, 0xcc, 0x4d, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c,	0x82, 0xf3, 0x41, 0x72, 0x01, 0x89, 0xc5, 0xc5, 0xe5, 0xf9, 0x45, 0x29, 0x12, 0x4c, 0x10, 0x39,	0x18, 0x5f, 0xc9, 0x98, 0x8b, 0x17, 0x6a, 0x4e, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x90, 0x00,	0x17, 0x73, 0x50, 0x6a, 0x09, 0xd4, 0x0c, 0x10, 0x13, 0x24, 0x92, 0x5a, 0x54, 0x04, 0xd5, 0x09,	0x62, 0x1a, 0xb9, 0x72, 0x71, 0x83, 0x0c, 0x0f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0x15, 0x32,	0xe3, 0xe2, 0x75, 0xce, 0x48, 0x4d, 0xce, 0x86, 0x19, 0x2a, 0x24, 0xa0, 0x57, 0x90, 0xa4, 0x87,	0xec, 0x3c, 0x29, 0x41, 0x24, 0x11, 0x88, 0x45, 0x4a, 0x0c, 0x49, 0x6c, 0x60, 0xef, 0x18, 0x03,	0x02, 0x00, 0x00, 0xff, 0xff, 0x47, 0x2f, 0x22, 0x40, 0xdf, 0x00, 0x00, 0x00,}// Reference imports to suppress errors if they are not otherwise used.var _ context.Contextvar _ grpc.ClientConn// This is a compile-time assertion to ensure that this generated file// is compatible with the grpc package it is being compiled against.const _ = grpc.SupportPackageIsVersion4// 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.type UserServiceClient interface {	CheckPassword(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)}type userServiceClient struct {	cc *grpc.ClientConn}func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient {	return &userServiceClient{cc}}func (c *userServiceClient) CheckPassword(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) {	out := new(LoginResponse)	err := c.cc.Invoke(ctx, "/pb.UserService/CheckPassword", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}// UserServiceServer is the server API for UserService service.type UserServiceServer interface {	CheckPassword(context.Context, *LoginRequest) (*LoginResponse, error)}// UnimplementedUserServiceServer can be embedded to have forward compatible implementations.type UnimplementedUserServiceServer struct {}func (*UnimplementedUserServiceServer) CheckPassword(ctx context.Context, req *LoginRequest) (*LoginResponse, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckPassword not implemented")}func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer) {	s.RegisterService(&_UserService_serviceDesc, srv)}func _UserService_CheckPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(LoginRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(UserServiceServer).CheckPassword(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/pb.UserService/CheckPassword",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(UserServiceServer).CheckPassword(ctx, req.(*LoginRequest))	}	return interceptor(ctx, in, info, handler)}var _UserService_serviceDesc = grpc.ServiceDesc{	ServiceName: "pb.UserService",	HandlerType: (*UserServiceServer)(nil),	Methods: []grpc.MethodDesc{		{			MethodName: "CheckPassword",			Handler:    _UserService_CheckPassword_Handler,		},	},	Streams:  []grpc.StreamDesc{},	Metadata: "pb/user.proto",}
 |