Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheManager ¶
type CacheManager interface { ClientPool() *redis.Client Prefix() string Get(key string) ([]byte, error) Set(key string, data []byte) error GetJSON(key string, data interface{}) error SetJSON(key string, data interface{}) error GetExpiration(key string) (time.Duration, error) SetExpiration(key string, expiration time.Duration) error Invalidate(key string) error CleanAll() error }
type ChampService ¶
type DataManager ¶
type DataManager interface { RepoManager Begin() (TransactionManager, error) Close() error }
type RepoManager ¶
type RepoManager interface { Champ() ChampRepo Team() TeamRepo Trophy() TrophyRepo }
type ScraperService ¶
type ScraperService interface {
ScrapeAndUpdate() error
}
type TeamService ¶
type TransactionManager ¶
type TransactionManager interface { RepoManager Rollback() error Commit() error }
Click to show internal directories.
Click to hide internal directories.