Documentation ¶
Index ¶
- type DriverRepo
- type DriverRepoImpl
- func (a *DriverRepoImpl) CreateDriver(c context.Context, data model.DriverDetails) (res model.DriverDetails, err error)
- func (a *DriverRepoImpl) EditDriverDetails(c context.Context, user model.DriverDetails) (res model.DriverDetails, err error)
- func (a *DriverRepoImpl) GetAllDrivers(c context.Context, verified *bool) (res []model.DriverDetails, err error)
- func (a *DriverRepoImpl) GetAvailableSeats(c context.Context, id string) (res interface{}, err error)
- func (a *DriverRepoImpl) GetDriverDetails(c context.Context, id string) (res model.DriverDetails, err error)
- func (a *DriverRepoImpl) GetStatus(c context.Context, id string) (res interface{}, err error)
- func (a *DriverRepoImpl) GetTripHistories(c context.Context, id string) (res interface{}, err error)
- func (a *DriverRepoImpl) SetAvailableSeats(c context.Context, data model.DriverDetails) (res interface{}, err error)
- func (a *DriverRepoImpl) SetStatus(c context.Context, status string, id string) (res interface{}, err error)
- func (a *DriverRepoImpl) SetVerified(c context.Context, data model.DriverDetails) (res model.DriverDetails, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverRepo ¶
type DriverRepo interface { CreateDriver(c context.Context, data model.DriverDetails) (model.DriverDetails, error) GetAllDrivers(c context.Context, verified *bool) ([]model.DriverDetails, error) GetDriverDetails(c context.Context, id string) (model.DriverDetails, error) EditDriverDetails(c context.Context, user model.DriverDetails) (model.DriverDetails, error) GetStatus(c context.Context, id string) (res interface{}, err error) SetStatus(c context.Context, status string, id string) (res interface{}, err error) SetVerified(c context.Context, data model.DriverDetails) (res model.DriverDetails, err error) GetAvailableSeats(c context.Context, id string) (res interface{}, err error) SetAvailableSeats(c context.Context, data model.DriverDetails) (res interface{}, err error) GetTripHistories(c context.Context, id string) (res interface{}, err error) }
func NewDriverRepo ¶
func NewDriverRepo(db *gorm.DB) DriverRepo
type DriverRepoImpl ¶
type DriverRepoImpl struct {
// contains filtered or unexported fields
}
func (*DriverRepoImpl) CreateDriver ¶
func (a *DriverRepoImpl) CreateDriver(c context.Context, data model.DriverDetails) (res model.DriverDetails, err error)
func (*DriverRepoImpl) EditDriverDetails ¶
func (a *DriverRepoImpl) EditDriverDetails(c context.Context, user model.DriverDetails) (res model.DriverDetails, err error)
func (*DriverRepoImpl) GetAllDrivers ¶
func (a *DriverRepoImpl) GetAllDrivers(c context.Context, verified *bool) (res []model.DriverDetails, err error)
func (*DriverRepoImpl) GetAvailableSeats ¶
func (a *DriverRepoImpl) GetAvailableSeats(c context.Context, id string) (res interface{}, err error)
func (*DriverRepoImpl) GetDriverDetails ¶
func (a *DriverRepoImpl) GetDriverDetails(c context.Context, id string) (res model.DriverDetails, err error)
func (*DriverRepoImpl) GetStatus ¶
func (a *DriverRepoImpl) GetStatus(c context.Context, id string) (res interface{}, err error)
func (*DriverRepoImpl) GetTripHistories ¶
func (a *DriverRepoImpl) GetTripHistories(c context.Context, id string) (res interface{}, err error)
func (*DriverRepoImpl) SetAvailableSeats ¶
func (a *DriverRepoImpl) SetAvailableSeats(c context.Context, data model.DriverDetails) (res interface{}, err error)
func (*DriverRepoImpl) SetVerified ¶
func (a *DriverRepoImpl) SetVerified(c context.Context, data model.DriverDetails) (res model.DriverDetails, err error)
Click to show internal directories.
Click to hide internal directories.