Documentation ¶
Index ¶
- type RevisionRepository
- func (r *RevisionRepository) All() ([]model.Revision, error)
- func (r *RevisionRepository) AllIDs() ([]string, error)
- func (r *RevisionRepository) AllWithLimit(_ uint64) ([]model.Revision, error)
- func (r *RevisionRepository) Create(revision *model.Revision) error
- func (r *RevisionRepository) FindByID(id string) (*model.Revision, error)
- func (r *RevisionRepository) Last() (*model.Revision, error)
- func (r *RevisionRepository) Stats() ([]model.RevisionStatMonth, error)
- type Store
- type VehicleRepository
- func (r *VehicleRepository) All() ([]model.Vehicle, error)
- func (r *VehicleRepository) AllWithLimit(limit uint64) ([]model.Vehicle, error)
- func (r *VehicleRepository) Create(revision *model.Revision, added []model.Vehicle, removed []string) error
- func (r *VehicleRepository) FindByNumber(number string) ([]model.Vehicle, error)
- func (r *VehicleRepository) FindByRevisionID(id string) ([]model.Vehicle, error)
- func (r *VehicleRepository) FindByVIN(vin string) ([]model.Vehicle, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RevisionRepository ¶
type RevisionRepository struct {
// contains filtered or unexported fields
}
func (*RevisionRepository) AllIDs ¶
func (r *RevisionRepository) AllIDs() ([]string, error)
func (*RevisionRepository) AllWithLimit ¶ added in v0.1.18
func (r *RevisionRepository) AllWithLimit(_ uint64) ([]model.Revision, error)
func (*RevisionRepository) Create ¶
func (r *RevisionRepository) Create(revision *model.Revision) error
func (*RevisionRepository) FindByID ¶
func (r *RevisionRepository) FindByID(id string) (*model.Revision, error)
func (*RevisionRepository) Stats ¶
func (r *RevisionRepository) Stats() ([]model.RevisionStatMonth, error)
Stats returns aggregated revisions by month.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Revision ¶
func (s *Store) Revision() store.RevisionRepository
func (*Store) Vehicle ¶
func (s *Store) Vehicle() store.VehicleRepository
type VehicleRepository ¶
type VehicleRepository struct {
// contains filtered or unexported fields
}
func (*VehicleRepository) AllWithLimit ¶
func (r *VehicleRepository) AllWithLimit(limit uint64) ([]model.Vehicle, error)
func (*VehicleRepository) FindByNumber ¶
func (r *VehicleRepository) FindByNumber(number string) ([]model.Vehicle, error)
func (*VehicleRepository) FindByRevisionID ¶
func (r *VehicleRepository) FindByRevisionID(id string) ([]model.Vehicle, error)
Click to show internal directories.
Click to hide internal directories.