ping

package
v0.0.0-...-3d786a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

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

type CacheKey struct {
	ID     int64
	Target string
}

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 (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 KeyGenrator interface {
	Key() string
	Count() string
}

func CTM

func CTM(v rune, Type string, Limit, Offset int32) KeyGenrator

type PingKey

type PingKey string

func (PingKey) Count

func (x PingKey) Count() string

func (PingKey) Key

func (x PingKey) Key() string

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

Directories

Path Synopsis
Package mockpg is a generated GoMock package.
Package mockpg is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL