Documentation ¶
Index ¶
Constants ¶
View Source
const ( Circle dataType = iota User dataType = iota )
Variables ¶
This section is empty.
Functions ¶
func NewPeriodConcurrent ¶
func NewPeriodConcurrent( time time.Time, add add, workersCount, dataType int, circleClient circlePb.CircleAPIClient, profileClient profilePb.ProfileAPIClient, ) periodConcurrent
Types ¶
type CircleCountHandler ¶
type CircleCountHandler struct {
// contains filtered or unexported fields
}
func NewCircleCountHandler ¶
func NewCircleCountHandler( repo repository.Repository, publisher pub.EventBusPublisher, circleClient circlePb.CircleAPIClient, ) CircleCountHandler
func (CircleCountHandler) GetCircleCountData ¶
func (c CircleCountHandler) GetCircleCountData(ctx context.Context, in *analyticsV1.GetCircleCountDataRequest) ( []model.CircleCountData, error, )
func (CircleCountHandler) PopulateData ¶
func (c CircleCountHandler) PopulateData(ctx context.Context, from time.Time, add add) ( model.CircleCountDataList, error, )
type CircleDataHandler ¶
type CircleDataHandler struct {
// contains filtered or unexported fields
}
func NewCircleDataHandler ¶
func NewCircleDataHandler( repo repository.Repository, publisher pub.EventBusPublisher, circleClient circlePb.CircleAPIClient, ) CircleDataHandler
func (CircleDataHandler) GetTrackedCirclesData ¶
func (c CircleDataHandler) GetTrackedCirclesData( ctx context.Context, circleID string, period model.Period) ( []*analyticsV1.GetCircleDataResponse_CircleDataHolder, error, )
type CircleHandler ¶
type CircleHandler struct {
// contains filtered or unexported fields
}
func NewCircleHandler ¶
func NewCircleHandler( repo repository.Repository, publisher pub.EventBusPublisher, ) CircleHandler
func (CircleHandler) DeleteCircle ¶
func (c CircleHandler) DeleteCircle(ctx context.Context, circleID string) error
func (CircleHandler) GetCircles ¶
type JobHandler ¶
type JobHandler struct {
// contains filtered or unexported fields
}
func NewJobHandler ¶
func NewJobHandler( repo repository.Repository, publisher pub.EventBusPublisher, circleClient circlePb.CircleAPIClient, ) JobHandler
func (JobHandler) CheckInitialJobs ¶
func (j JobHandler) CheckInitialJobs(ctx context.Context) error
type JobWorkerHandler ¶
type JobWorkerHandler struct {
// contains filtered or unexported fields
}
func NewJobWorkerHandler ¶
func NewJobWorkerHandler( repo repository.Repository, publisher pub.EventBusPublisher, cron ICron, circleClient circlePb.CircleAPIClient, ) JobWorkerHandler
func (JobWorkerHandler) ProcessJob ¶
func (JobWorkerHandler) StartJobWorker ¶
func (j JobWorkerHandler) StartJobWorker() error
type Service ¶
type Service struct { JobHandler JobWorkerHandler CircleHandler CircleDataHandler CircleCountHandler UserDataHandler ICron }
func New ¶
func New( repo repository.Repository, eventPublisher pub.EventBusPublisher, cron ICron, circleClient circlePb.CircleAPIClient, profileClient profilePb.ProfileAPIClient, ) Service
type UserDataHandler ¶
type UserDataHandler struct {
// contains filtered or unexported fields
}
func NewUserDataHandler ¶
func NewUserDataHandler( repo repository.Repository, profileClient profilePb.ProfileAPIClient, circleClient circlePb.CircleAPIClient, ) UserDataHandler
func (UserDataHandler) GetUserCountData ¶
func (c UserDataHandler) GetUserCountData( ctx context.Context, in *analyticsV1.GetUserCountDataRequest, ) ([]model.CountData, error)
Click to show internal directories.
Click to hide internal directories.