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 AreaEvent
- type AreaRead
- type FarmEvent
- type FarmRead
- type MaterialEvent
- type MaterialEventTypeWrapper
- type MaterialRead
- type ReservoirEvent
- type ReservoirRead
- type Result
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 MaterialEvent ¶
type MaterialEventTypeWrapper ¶
type MaterialEventTypeWrapper struct { Type string Data interface{} }
func (MaterialEventTypeWrapper) Code ¶
func (w MaterialEventTypeWrapper) Code() string
type MaterialRead ¶
type MaterialRead interface {
Save(materialRead *storage.MaterialRead) <-chan error
}
type ReservoirEvent ¶
type ReservoirRead ¶
type ReservoirRead interface {
Save(reservoirRead *storage.ReservoirRead) <-chan error
}
Click to show internal directories.
Click to hide internal directories.