Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { // Save saves the given score, stats and run data for the given simulation's GroupID. Save(groupID simulations.GroupID, score *float64, stats simulations.Statistics, runData string) (*simulations.Summary, error) // Calculate takes a parent group id and returns the calculate summary for all its children. Calculate(groupID simulations.GroupID) (*simulations.Summary, error) }
Service groups a set of methods to handle summaries for simulations.
func NewService ¶
NewService initializes a new Service implementation using gorm.
Click to show internal directories.
Click to hide internal directories.