package inmem
import "github.com/go-kit/kit/examples/shipping/inmem"
Package inmem provides in-memory implementations of all the domain repositories.
Index ¶
- func NewCargoRepository() cargo.Repository
- func NewHandlingEventRepository() cargo.HandlingEventRepository
- func NewLocationRepository() location.Repository
- func NewVoyageRepository() voyage.Repository
Functions ¶
func NewCargoRepository ¶
func NewCargoRepository() cargo.Repository
NewCargoRepository returns a new instance of a in-memory cargo repository.
func NewHandlingEventRepository ¶
func NewHandlingEventRepository() cargo.HandlingEventRepository
NewHandlingEventRepository returns a new instance of a in-memory handling event repository.
func NewLocationRepository ¶
func NewLocationRepository() location.Repository
NewLocationRepository returns a new instance of a in-memory location repository.
func NewVoyageRepository ¶
func NewVoyageRepository() voyage.Repository
NewVoyageRepository returns a new instance of a in-memory voyage repository.
Source Files ¶
- Version
- v0.9.0
- Published
- Jun 24, 2019
- Platform
- darwin/amd64
- Imports
- 4 packages
- Last checked
- 8 seconds ago –
Tools for package owners.