teststore

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func (r *RevisionRepository) All() ([]model.Revision, error)

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

func (r *RevisionRepository) Last() (*model.Revision, error)

func (*RevisionRepository) Stats

Stats returns aggregated revisions by month.

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New() *Store

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

func (r *VehicleRepository) All() ([]model.Vehicle, error)

func (*VehicleRepository) AllWithLimit

func (r *VehicleRepository) AllWithLimit(limit uint64) ([]model.Vehicle, error)

func (*VehicleRepository) Create

func (r *VehicleRepository) Create(revision *model.Revision, added []model.Vehicle, removed []string) 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)

func (*VehicleRepository) FindByVIN

func (r *VehicleRepository) FindByVIN(vin string) ([]model.Vehicle, error)

Jump to

Keyboard shortcuts

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