Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDataFormat = errors.New("unexpected data format") ErrCardDataFormat = errors.New("unexpected card data format") )
View Source
var ErrExceedRequestLimit = errors.New("request limit reached")
Functions ¶
This section is empty.
Types ¶
type DetailInfo ¶ added in v0.1.7
type DetailInfo struct { EngName string CardType string Property string Attribute string Types []string Level string LinkArrows string Atk string Def string Link string EffectTypes []string Effect string Pendulum Pendulum Status BanStatus Power string Colors []string Product string Rarity string Life string Category string Cost string Counter string Traits []string Trigger string Soul string }
type DetailService ¶ added in v0.1.7
type DetailService interface {
Fetch(ctx context.Context, code, game string) (*DetailInfo, error)
}
type ScrapeService ¶
func NewBigWeb ¶
func NewBigWeb(logger *slog.Logger) ScrapeService
func NewCachedScrapeService ¶
func NewCachedScrapeService(cache *redis.Client, cfg *config.Config, logger *slog.Logger, gs game.Service, service ...ScrapeService) ScrapeService
Click to show internal directories.
Click to hide internal directories.