Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStore ¶
func NewStore(db *gorm.DB, tableName string, statusStore protocol.StatusStore) protocol.ProfileStore
NewStore to construct status store
Types ¶
type MetricStore ¶
type MetricStore struct {
// contains filtered or unexported fields
}
func NewMetricStore ¶
func NewMetricStore(db *gorm.DB, tableName string) *MetricStore
NewMetricStore is constructor of MetricStore
func (*MetricStore) GetMetricsByProfileID ¶
func (m *MetricStore) GetMetricsByProfileID(ID string) ([]*metric.Metric, error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is profile service
func NewService ¶
func NewService(profileStore protocol.ProfileStore, metricGenerator protocol.MetricGenerator, publisher protocol.Publisher, messageBuilderFactory protocol.MessageProviderFactory, statusStore protocol.StatusStore, statsFactory stats.ClientBuilder) *Service
NewService to construct profile service
func (*Service) CreateProfile ¶
CreateProfile to create profile
Click to show internal directories.
Click to hide internal directories.