Versions in this module Expand all Collapse all v0 v0.1.1 Oct 20, 2022 v0.1.0 Sep 26, 2022 Changes in this version + func NewStore(db *gorm.DB, tableName string, statusStore protocol.StatusStore) protocol.ProfileStore + type MetricStore struct + func NewMetricStore(db *gorm.DB, tableName string) *MetricStore + func (m *MetricStore) GetMetricsByProfileID(ID string) ([]*metric.Metric, error) + func (m *MetricStore) Store(profile *job.Profile, metrics []*metric.Metric) error + type Service struct + func NewService(profileStore protocol.ProfileStore, metricGenerator protocol.MetricGenerator, ...) *Service + func (s *Service) CreateProfile(profile *job.Profile) (*job.Profile, error) + func (s *Service) Get(ID string) (*job.Profile, error) + func (s *Service) GetLog(profileID string) ([]*protocol.Status, error) + func (s *Service) WaitAll(ctx context.Context) error + type Store struct + func (s *Store) Create(profile *job.Profile) (*job.Profile, error) + func (s *Store) Get(ID string) (*job.Profile, error) + func (s *Store) Update(profile *job.Profile) error