Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { CreatedOn time.Time Actions []GardenAction }
type GardenAction ¶
type GardenAction struct { Subject []Specimen Type GardenActionsType }
type GardenActionsType ¶
type GardenActionsType string
const ( WateredAction GardenActionsType = "Watered" SownAction GardenActionsType = "Sown" TransplantedAction GardenActionsType = "Transplanted" RemovedAction GardenActionsType = "Removed" FertilizedAction GardenActionsType = "Fertlized" UnknownAction GardenActionsType = "" )
type GrowingState ¶
type GrowingState string
const ( Sown GrowingState = "SOWN" Seedling GrowingState = "SEEDLING" Transplanted GrowingState = "TRANSPLANTED" Mature GrowingState = "MATURE" Removed GrowingState = "REMOVED" Perannual GrowingState = "PERANNUAL" )
type Specimen ¶
type Specimen struct { Id uint32 Plant Plant SownDate time.Time TransplantDate time.Time State GrowingState }
func (Specimen) EstimatedGerminationDate ¶
Returns the lower and upper bounds of the estimated germination
If the sown data is zero, the function will return zero date time for upper and lower
func (Specimen) EstimatedMaturityDate ¶
Returns the estimated maturity date for the specimen
If sown date for the specimen is zero, returns zero for both lower and upper
Click to show internal directories.
Click to hide internal directories.