Documentation
¶
Index ¶
- type CarRecord
- type CarUpdate
- type Manager
- func (m *Manager) CreateCar(c context.Context, plateNum string) (*CarRecord, error)
- func (m *Manager) DeleteCar(c context.Context, id id.CarID) error
- func (m *Manager) GetCar(c context.Context, id id.CarID) (*CarRecord, error)
- func (m *Manager) GetCars(c context.Context, limit int64) ([]*CarRecord, error)
- func (m *Manager) UpdateCar(c context.Context, id id.CarID, status base.CarStatus, update *CarUpdate) (*CarRecord, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CarUpdate ¶
type CarUpdate struct { Status base.CarStatus Position *base.Position Driver *base.Driver Power float64 UpdateTripID bool TripID id.TripID PlateNum string }
CarUpdate defines updates to a car. Only specified fields will be updated.
Click to show internal directories.
Click to hide internal directories.