repository

package
v0.0.0-...-77ca5db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) SetStatus

func (a *DriverRepoImpl) SetStatus(c context.Context, status string, id string) (res interface{}, err error)

func (*DriverRepoImpl) SetVerified

func (a *DriverRepoImpl) SetVerified(c context.Context, data model.DriverDetails) (res model.DriverDetails, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL