summaries

package
v0.0.0-...-70b330c Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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

func NewService(db *gorm.DB) Service

NewService initializes a new Service implementation using gorm.

Jump to

Keyboard shortcuts

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