Documentation ¶
Index ¶
- type LinkRepository
- func (d *LinkRepository) All(ctx context.Context) ([]domain.Link, error)
- func (d *LinkRepository) Create(ctx context.Context, link domain.Link) error
- func (d *LinkRepository) Delete(ctx context.Context, id string) error
- func (d *LinkRepository) Get(ctx context.Context, id string) (domain.Link, error)
- type StatsRepository
- func (d *StatsRepository) All(ctx context.Context) ([]domain.Stats, error)
- func (d *StatsRepository) Create(ctx context.Context, stats domain.Stats) error
- func (d *StatsRepository) Delete(ctx context.Context, id string) error
- func (d *StatsRepository) Get(ctx context.Context, id string) (domain.Stats, error)
- func (d *StatsRepository) GetStatsByLinkID(ctx context.Context, linkID string) ([]domain.Stats, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkRepository ¶
type LinkRepository struct {
// contains filtered or unexported fields
}
func NewLinkRepository ¶
func NewLinkRepository(ctx context.Context, tableName string) *LinkRepository
type StatsRepository ¶
type StatsRepository struct {
// contains filtered or unexported fields
}
func NewStatsRepository ¶
func NewStatsRepository(ctx context.Context, tableName string) *StatsRepository
func (*StatsRepository) Delete ¶
func (d *StatsRepository) Delete(ctx context.Context, id string) error
func (*StatsRepository) GetStatsByLinkID ¶
Click to show internal directories.
Click to hide internal directories.