repository

package
v0.0.0-...-ae75a06 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAreaFromHistory

func NewAreaFromHistory(events []storage.AreaEvent) *domain.Area

func NewFarmFromHistory

func NewFarmFromHistory(events []storage.FarmEvent) *domain.Farm

func NewMaterialFromHistory

func NewMaterialFromHistory(events []storage.MaterialEvent) *domain.Material

func NewReservoirFromHistory

func NewReservoirFromHistory(events []storage.ReservoirEvent) *domain.Reservoir

Types

type AreaEvent

type AreaEvent interface {
	Save(uid uuid.UUID, latestVersion int, events []interface{}) <-chan error
}

type AreaRead

type AreaRead interface {
	Save(areaRead *storage.AreaRead) <-chan error
}

type FarmEvent

type FarmEvent interface {
	Save(uid uuid.UUID, latestVersion int, events []interface{}) <-chan error
}

type FarmRead

type FarmRead interface {
	Save(farmRead *storage.FarmRead) <-chan error
}

type MaterialEvent

type MaterialEvent interface {
	Save(uid uuid.UUID, latestVersion int, events []interface{}) <-chan error
}

type MaterialEventTypeWrapper

type MaterialEventTypeWrapper struct {
	Type string
	Data interface{}
}

func (MaterialEventTypeWrapper) Code

type MaterialRead

type MaterialRead interface {
	Save(materialRead *storage.MaterialRead) <-chan error
}

type ReservoirEvent

type ReservoirEvent interface {
	Save(uid uuid.UUID, latestVersion int, events []interface{}) <-chan error
}

type ReservoirRead

type ReservoirRead interface {
	Save(reservoirRead *storage.ReservoirRead) <-chan error
}

type Result

type Result struct {
	Result interface{}
	Error  error
}

Result is a struct to wrap repository result so its easy to use it in channel.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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