Documentation ¶
Index ¶
- func GetTx(ctx context.Context) (*sqlx.Tx, bool)
- func NewDb() (*sqlx.DB, error)
- type TrancoAPIImpl
- type TrancoCsvImpl
- type TrancoDailyRankRepositoryImpl
- type TrancoDomainRepositoryImpl
- type TrancoListRepositoryImpl
- func (t TrancoListRepositoryImpl) DeleteByID(ctx context.Context, id string) error
- func (t TrancoListRepositoryImpl) ExistsID(ctx context.Context, id string) (bool, error)
- func (t TrancoListRepositoryImpl) FindByCreatedOnLessThan(ctx context.Context, date time.Time) ([]model.TrancoList, error)
- func (t TrancoListRepositoryImpl) Save(ctx context.Context, list model.TrancoList) error
- type TrancoRankingsRepositoryImpl
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TrancoAPIImpl ¶ added in v0.0.2
type TrancoAPIImpl struct {
// contains filtered or unexported fields
}
func NewTrancoAPIImpl ¶ added in v0.0.2
func NewTrancoAPIImpl() *TrancoAPIImpl
func (TrancoAPIImpl) GetIDByDate ¶ added in v0.0.2
func (t TrancoAPIImpl) GetIDByDate(date time.Time) (tranco.ListMetadata, error)
type TrancoCsvImpl ¶
type TrancoCsvImpl struct { }
func NewTrancoCsvImpl ¶
func NewTrancoCsvImpl() *TrancoCsvImpl
func (TrancoCsvImpl) Get ¶
func (t TrancoCsvImpl) Get(url url.URL) ([]model.SiteRanking, error)
type TrancoDailyRankRepositoryImpl ¶
type TrancoDailyRankRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewTrancoDailyRankRepositoryImpl ¶
func NewTrancoDailyRankRepositoryImpl(db util.Crudable) *TrancoDailyRankRepositoryImpl
type TrancoDomainRepositoryImpl ¶
type TrancoDomainRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewTrancoDomainRepositoryImpl ¶
func NewTrancoDomainRepositoryImpl(db *sqlx.DB) *TrancoDomainRepositoryImpl
func (TrancoDomainRepositoryImpl) GetIDByDomain ¶ added in v0.0.2
type TrancoListRepositoryImpl ¶
type TrancoListRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewTrancoListRepositoryImpl ¶
func NewTrancoListRepositoryImpl(db *sqlx.DB) *TrancoListRepositoryImpl
func (TrancoListRepositoryImpl) DeleteByID ¶ added in v0.0.2
func (t TrancoListRepositoryImpl) DeleteByID(ctx context.Context, id string) error
func (TrancoListRepositoryImpl) FindByCreatedOnLessThan ¶ added in v0.0.2
func (t TrancoListRepositoryImpl) FindByCreatedOnLessThan(ctx context.Context, date time.Time) ([]model.TrancoList, error)
func (TrancoListRepositoryImpl) Save ¶
func (t TrancoListRepositoryImpl) Save(ctx context.Context, list model.TrancoList) error
type TrancoRankingsRepositoryImpl ¶
type TrancoRankingsRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewTrancoRankingsRepositoryImpl ¶
func NewTrancoRankingsRepositoryImpl(batchSize int, db util.Crudable) *TrancoRankingsRepositoryImpl
func (TrancoRankingsRepositoryImpl) BulkSave ¶
func (t TrancoRankingsRepositoryImpl) BulkSave(ctx context.Context, rankings []model.TrancoRanking) error
func (TrancoRankingsRepositoryImpl) DeleteByListID ¶ added in v0.0.2
func (t TrancoRankingsRepositoryImpl) DeleteByListID(ctx context.Context, listID string) error
func (TrancoRankingsRepositoryImpl) Save ¶
func (t TrancoRankingsRepositoryImpl) Save(ctx context.Context, ranking model.TrancoRanking) error
Click to show internal directories.
Click to hide internal directories.