Documentation
¶
Index ¶
- Constants
- type CacheKey
- func (x *CacheKey) Backdrops() KeyGenrator
- func (x *CacheKey) Characters() KeyGenrator
- func (x *CacheKey) DubT() KeyGenrator
- func (x *CacheKey) DubV() KeyGenrator
- func (x *CacheKey) Episodes(Limit, Offset int32) KeyGenrator
- func (x *CacheKey) Genre() KeyGenrator
- func (x *CacheKey) Links() KeyGenrator
- func (x *CacheKey) Logos() KeyGenrator
- func (x *CacheKey) Main() KeyGenrator
- func (x *CacheKey) Meta() KeyGenrator
- func (x *CacheKey) Posters() KeyGenrator
- func (x *CacheKey) Resources() KeyGenrator
- func (x *CacheKey) Seasons(Limit, Offset int32) KeyGenrator
- func (x *CacheKey) Server() KeyGenrator
- func (x *CacheKey) Studio() KeyGenrator
- func (x *CacheKey) SubT() KeyGenrator
- func (x *CacheKey) SubV() KeyGenrator
- func (x *CacheKey) Tags() KeyGenrator
- func (x *CacheKey) Trailers() KeyGenrator
- type KeyGenrator
- type PingKey
- type PingSystem
- type SegmentKey
- func (x SegmentKey) ACT() KeyGenrator
- func (x SegmentKey) CHR(v rune) KeyGenrator
- func (x SegmentKey) GNR() KeyGenrator
- func (x SegmentKey) IMG(v rune) KeyGenrator
- func (x SegmentKey) LNG() KeyGenrator
- func (x SegmentKey) STD() KeyGenrator
- func (x SegmentKey) TAG(v rune) KeyGenrator
- func (x SegmentKey) TRL(v rune) KeyGenrator
Constants ¶
View Source
const ( AnimeMovie = "AM" AnimeSerie = "AS" AnimeSeason = "AX" AnimeEpisode = "AE" )
View Source
const ( Anime rune = 'A' STD = "STD" GNR = "GNR" LNG = "LNG" ACT = "ACT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheKey ¶
func (*CacheKey) Backdrops ¶
func (x *CacheKey) Backdrops() KeyGenrator
func (*CacheKey) Characters ¶
func (x *CacheKey) Characters() KeyGenrator
func (*CacheKey) DubT ¶
func (x *CacheKey) DubT() KeyGenrator
func (*CacheKey) DubV ¶
func (x *CacheKey) DubV() KeyGenrator
func (*CacheKey) Episodes ¶
func (x *CacheKey) Episodes(Limit, Offset int32) KeyGenrator
func (*CacheKey) Genre ¶
func (x *CacheKey) Genre() KeyGenrator
func (*CacheKey) Links ¶
func (x *CacheKey) Links() KeyGenrator
func (*CacheKey) Logos ¶
func (x *CacheKey) Logos() KeyGenrator
func (*CacheKey) Main ¶
func (x *CacheKey) Main() KeyGenrator
func (*CacheKey) Meta ¶
func (x *CacheKey) Meta() KeyGenrator
func (*CacheKey) Posters ¶
func (x *CacheKey) Posters() KeyGenrator
func (*CacheKey) Resources ¶
func (x *CacheKey) Resources() KeyGenrator
func (*CacheKey) Seasons ¶
func (x *CacheKey) Seasons(Limit, Offset int32) KeyGenrator
func (*CacheKey) Server ¶
func (x *CacheKey) Server() KeyGenrator
func (*CacheKey) Studio ¶
func (x *CacheKey) Studio() KeyGenrator
func (*CacheKey) SubT ¶
func (x *CacheKey) SubT() KeyGenrator
func (*CacheKey) SubV ¶
func (x *CacheKey) SubV() KeyGenrator
func (*CacheKey) Tags ¶
func (x *CacheKey) Tags() KeyGenrator
func (*CacheKey) Trailers ¶
func (x *CacheKey) Trailers() KeyGenrator
type KeyGenrator ¶
type PingSystem ¶
type PingSystem struct {
// contains filtered or unexported fields
}
PingSystem is a cache system using redis.
func NewPingSystem ¶
func NewPingSystem(host string, config *conf.DataEnv) *PingSystem
func (*PingSystem) Handle ¶
func (system *PingSystem) Handle(ctx context.Context, gen KeyGenrator, value interface{}, fn func() error) error
type SegmentKey ¶
type SegmentKey int64
func (SegmentKey) ACT ¶
func (x SegmentKey) ACT() KeyGenrator
func (SegmentKey) CHR ¶
func (x SegmentKey) CHR(v rune) KeyGenrator
func (SegmentKey) GNR ¶
func (x SegmentKey) GNR() KeyGenrator
func (SegmentKey) IMG ¶
func (x SegmentKey) IMG(v rune) KeyGenrator
func (SegmentKey) LNG ¶
func (x SegmentKey) LNG() KeyGenrator
func (SegmentKey) STD ¶
func (x SegmentKey) STD() KeyGenrator
func (SegmentKey) TAG ¶
func (x SegmentKey) TAG(v rune) KeyGenrator
func (SegmentKey) TRL ¶
func (x SegmentKey) TRL(v rune) KeyGenrator
Click to show internal directories.
Click to hide internal directories.