Documentation ¶
Index ¶
- type Repository
- func (r *Repository) Create(ctx context.Context, slug string) error
- func (r *Repository) DeleteBySlug(ctx context.Context, slug string) (int64, error)
- func (r *Repository) GetBySlug(ctx context.Context, slug string) (*segmentModel.Segment, error)
- func (r *Repository) GetUsersBySlug(ctx context.Context, slug string) ([]userModel.User, 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) DeleteBySlug ¶
func (*Repository) GetBySlug ¶
func (r *Repository) GetBySlug(ctx context.Context, slug string) (*segmentModel.Segment, error)
func (*Repository) GetUsersBySlug ¶
Click to show internal directories.
Click to hide internal directories.