Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CarDB ¶
type CarDB interface { InsertCar(ctx context.Context, car *CarEntity) error PaintCar(ctx context.Context, carNumber string, newColor string) error GetCar(ctx context.Context, carNumber string) (*CarEntity, error) RemoveCar(ctx context.Context, carNumber string) (*CarEntity, error) }
This interface will represent our car db
func CreateCarDB ¶
func CreateCarDB(deps carDBDeps) CarDB
Click to show internal directories.
Click to hide internal directories.