Documentation ¶
Index ¶
- func NewAreaFromHistory(events []storage.AreaEvent) *domain.Area
- func NewFarmFromHistory(events []storage.FarmEvent) *domain.Farm
- func NewMaterialFromHistory(events []storage.MaterialEvent) *domain.Material
- func NewReservoirFromHistory(events []storage.ReservoirEvent) *domain.Reservoir
- type AreaEventRepository
- type AreaReadRepository
- type FarmEventRepository
- type FarmReadRepository
- type MaterialEventRepository
- type MaterialEventTypeWrapper
- type MaterialReadRepository
- type RepositoryResult
- type ReservoirEventRepository
- type ReservoirReadRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMaterialFromHistory ¶
func NewMaterialFromHistory(events []storage.MaterialEvent) *domain.Material
func NewReservoirFromHistory ¶
func NewReservoirFromHistory(events []storage.ReservoirEvent) *domain.Reservoir
Types ¶
type AreaEventRepository ¶
type AreaReadRepository ¶
type FarmEventRepository ¶
type FarmReadRepository ¶
type MaterialEventRepository ¶
type MaterialEventTypeWrapper ¶
type MaterialEventTypeWrapper struct { Type string Data interface{} }
func (MaterialEventTypeWrapper) Code ¶
func (w MaterialEventTypeWrapper) Code() string
type MaterialReadRepository ¶
type MaterialReadRepository interface {
Save(materialRead *storage.MaterialRead) <-chan error
}
type RepositoryResult ¶
type RepositoryResult struct { Result interface{} Error error }
RepositoryResult is a struct to wrap repository result so its easy to use it in channel
type ReservoirReadRepository ¶
type ReservoirReadRepository interface {
Save(reservoirRead *storage.ReservoirRead) <-chan error
}
Click to show internal directories.
Click to hide internal directories.