Documentation
¶
Index ¶
- Variables
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetCity() string
- func (x *Address) GetCountry() string
- func (x *Address) GetDivision() string
- func (x *Address) GetLane() string
- func (x *Address) GetPin() string
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- type Empty
- type LoginResponse
- type RegisterUserRequest
- func (*RegisterUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserRequest) GetAddress() *Address
- func (x *RegisterUserRequest) GetEmail() string
- func (x *RegisterUserRequest) GetId() string
- func (x *RegisterUserRequest) GetName() string
- func (x *RegisterUserRequest) GetPhone() string
- func (x *RegisterUserRequest) GetProfile() string
- func (*RegisterUserRequest) ProtoMessage()
- func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterUserRequest) Reset()
- func (x *RegisterUserRequest) String() string
- type UnimplementedUserServiceServer
- func (*UnimplementedUserServiceServer) GetUser(context.Context, *Empty) (*User, error)
- func (*UnimplementedUserServiceServer) LoginUser(context.Context, *Empty) (*LoginResponse, error)
- func (*UnimplementedUserServiceServer) RegisterUser(context.Context, *RegisterUserRequest) (*Empty, error)
- func (*UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*Empty, error)
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetAddress() *Address
- func (x *UpdateUserRequest) GetName() string
- func (x *UpdateUserRequest) GetPhone() string
- func (x *UpdateUserRequest) GetProfile() string
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAddress() *Address
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetName() string
- func (x *User) GetPhone() string
- func (x *User) GetProducts() []string
- func (x *User) GetProfile() string
- func (x *User) GetRatecount() int32
- func (x *User) GetRating() float32
- func (x *User) GetWishlist() []string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_proto protoreflect.FileDescriptor
View Source
var File_utils_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type Address ¶
type Address struct { Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` Division string `protobuf:"bytes,2,opt,name=division,proto3" json:"division,omitempty"` City string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"` Lane string `protobuf:"bytes,4,opt,name=lane,proto3" json:"lane,omitempty"` Pin string `protobuf:"bytes,5,opt,name=pin,proto3" json:"pin,omitempty"` // contains filtered or unexported fields }
func (*Address) Descriptor
deprecated
func (*Address) GetCountry ¶
func (*Address) GetDivision ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type LoginResponse ¶
type LoginResponse struct { Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetStatus ¶
func (x *LoginResponse) GetStatus() bool
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type RegisterUserRequest ¶
type RegisterUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` Address *Address `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` Profile string `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*RegisterUserRequest) Descriptor
deprecated
func (*RegisterUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserRequest.ProtoReflect.Descriptor instead.
func (*RegisterUserRequest) GetAddress ¶
func (x *RegisterUserRequest) GetAddress() *Address
func (*RegisterUserRequest) GetEmail ¶
func (x *RegisterUserRequest) GetEmail() string
func (*RegisterUserRequest) GetId ¶
func (x *RegisterUserRequest) GetId() string
func (*RegisterUserRequest) GetName ¶
func (x *RegisterUserRequest) GetName() string
func (*RegisterUserRequest) GetPhone ¶
func (x *RegisterUserRequest) GetPhone() string
func (*RegisterUserRequest) GetProfile ¶
func (x *RegisterUserRequest) GetProfile() string
func (*RegisterUserRequest) ProtoMessage ¶
func (*RegisterUserRequest) ProtoMessage()
func (*RegisterUserRequest) ProtoReflect ¶
func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
func (*RegisterUserRequest) Reset ¶
func (x *RegisterUserRequest) Reset()
func (*RegisterUserRequest) String ¶
func (x *RegisterUserRequest) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServiceServer) LoginUser ¶
func (*UnimplementedUserServiceServer) LoginUser(context.Context, *Empty) (*LoginResponse, error)
func (*UnimplementedUserServiceServer) RegisterUser ¶
func (*UnimplementedUserServiceServer) RegisterUser(context.Context, *RegisterUserRequest) (*Empty, error)
func (*UnimplementedUserServiceServer) UpdateUser ¶
func (*UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*Empty, error)
type UpdateUserRequest ¶
type UpdateUserRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` Address *Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Profile string `protobuf:"bytes,4,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetAddress ¶
func (x *UpdateUserRequest) GetAddress() *Address
func (*UpdateUserRequest) GetName ¶
func (x *UpdateUserRequest) GetName() string
func (*UpdateUserRequest) GetPhone ¶
func (x *UpdateUserRequest) GetPhone() string
func (*UpdateUserRequest) GetProfile ¶
func (x *UpdateUserRequest) GetProfile() string
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` Address *Address `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` Profile string `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile,omitempty"` Ratecount int32 `protobuf:"varint,7,opt,name=ratecount,proto3" json:"ratecount,omitempty"` Rating float32 `protobuf:"fixed32,8,opt,name=rating,proto3" json:"rating,omitempty"` Wishlist []string `protobuf:"bytes,9,rep,name=wishlist,proto3" json:"wishlist,omitempty"` Products []string `protobuf:"bytes,10,rep,name=products,proto3" json:"products,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAddress ¶
func (*User) GetProducts ¶
func (*User) GetProfile ¶
func (*User) GetRatecount ¶
func (*User) GetWishlist ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*Empty, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*Empty, error) LoginUser(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*LoginResponse, error) GetUser(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*User, 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
type UserServiceServer ¶
type UserServiceServer interface { RegisterUser(context.Context, *RegisterUserRequest) (*Empty, error) UpdateUser(context.Context, *UpdateUserRequest) (*Empty, error) LoginUser(context.Context, *Empty) (*LoginResponse, error) GetUser(context.Context, *Empty) (*User, error) }
UserServiceServer is the server API for UserService service.
Click to show internal directories.
Click to hide internal directories.