Documentation
¶
Index ¶
- type UserRepo
- type UserRepoImpl
- func (a *UserRepoImpl) CreateUser(c context.Context, user model.UserDetails) (res model.UserDetails, err error)
- func (a *UserRepoImpl) GetAllReviews(c context.Context) (res []model.Review, err error)
- func (a *UserRepoImpl) GetAllUsers(c context.Context) (res []model.UserDetails, err error)
- func (a *UserRepoImpl) GetReviewsByID(c context.Context, id string) (res model.Review, err error)
- func (a *UserRepoImpl) GetUserDetails(c context.Context, id string) (res model.UserDetails, err error)
- func (a *UserRepoImpl) ReviewOrder(c context.Context, data model.Review) (res model.Review, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepo ¶
type UserRepo interface {
CreateUser(c context.Context, user model.UserDetails) (model.UserDetails, error)
GetUserDetails(c context.Context, id string) (model.UserDetails, error)
GetAllUsers(c context.Context) ([]model.UserDetails, error)
GetAllReviews(c context.Context) ([]model.Review, error)
GetReviewsByID(c context.Context, id string) (model.Review, error)
ReviewOrder(c context.Context, data model.Review) (model.Review, error)
}
func NewUserRepo ¶
type UserRepoImpl ¶
type UserRepoImpl struct {
// contains filtered or unexported fields
}
func (*UserRepoImpl) CreateUser ¶
func (a *UserRepoImpl) CreateUser(c context.Context, user model.UserDetails) (res model.UserDetails, err error)
func (*UserRepoImpl) GetAllReviews ¶
func (*UserRepoImpl) GetAllUsers ¶
func (a *UserRepoImpl) GetAllUsers(c context.Context) (res []model.UserDetails, err error)
func (*UserRepoImpl) GetReviewsByID ¶
func (*UserRepoImpl) GetUserDetails ¶
func (a *UserRepoImpl) GetUserDetails(c context.Context, id string) (res model.UserDetails, err error)
func (*UserRepoImpl) ReviewOrder ¶
Click to show internal directories.
Click to hide internal directories.