Documentation
¶
Index ¶
- type Repository
- func (r *Repository) Create(ctx context.Context, user *userModel.User) error
- func (r *Repository) Delete(ctx context.Context, userId int) (int64, error)
- func (r *Repository) GetAll(ctx context.Context) ([]userModel.User, error)
- func (r *Repository) GetSegments(ctx context.Context, userId int) ([]segmentModel.Segment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(client pg.Client) *Repository
func (*Repository) GetSegments ¶
func (r *Repository) GetSegments(ctx context.Context, userId int) ([]segmentModel.Segment, error)
Click to show internal directories.
Click to hide internal directories.