Documentation
¶
Index ¶
- Variables
- type AssignedSegment
- type Repo
- func (r *Repo) AssignUserSegments(ctx context.Context, userID int64, segments []*AssignedSegment) error
- func (r *Repo) DeleteUserSegments(ctx context.Context, userID int64, segments []string) error
- func (r *Repo) GetReportDataByUserIDs(ctx context.Context, userIDs []int, from, to *time.Time) ([]*SegmentActivity, error)
- func (r *Repo) GetSegmentsByUserID(ctx context.Context, userID int) ([]string, error)
- type SegmentActivity
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SegmentNotFound = errors.New("segment not found error") ErrUserNotFound = errors.New("user not found error") )
Functions ¶
This section is empty.
Types ¶
type AssignedSegment ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) AssignUserSegments ¶
func (r *Repo) AssignUserSegments(ctx context.Context, userID int64, segments []*AssignedSegment) error
TODO: возвращать ошибку если assign тот же 409
func (*Repo) DeleteUserSegments ¶
func (*Repo) GetReportDataByUserIDs ¶
Click to show internal directories.
Click to hide internal directories.