cache

package
v0.0.0-...-07de05f Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CacheCodec *cache.Codec
)

Functions

func AddFriend

func AddFriend(s *discordgo.Session)

func AddMachineryActiveWorker

func AddMachineryActiveWorker(worker *machinery.Worker)

func GetElastic

func GetElastic() *elastic.Client

func GetFriend

func GetFriend(guildID string) *discordgo.Session

func GetFriends

func GetFriends() []*discordgo.Session

func GetGoogleDriveService

func GetGoogleDriveService() *drive.Service

func GetKeen

func GetKeen() *keen.Client

func GetLogger

func GetLogger() *logrus.Logger

func GetMachineryActiveWorkers

func GetMachineryActiveWorkers() (workers []*machinery.Worker)

func GetMachineryRedisClient

func GetMachineryRedisClient() *redis.Client

func GetMachineryServer

func GetMachineryServer() *machinery.Server

func GetPluginExtendedList

func GetPluginExtendedList() []string

func GetPluginList

func GetPluginList() []string

func GetPolr

func GetPolr() *polr.Polr

func GetRedisCacheCodec

func GetRedisCacheCodec() *cache.Codec

func GetRedisClient

func GetRedisClient() *redis.Client

func GetSession

func GetSession() *shardmanager.Manager

func HasElastic

func HasElastic() bool

func HasGoogleDrive

func HasGoogleDrive() bool

HasGoogleDrive simple check to confirm drive session was set

func HasKeen

func HasKeen() bool

func HasMachineryRedisClient

func HasMachineryRedisClient() bool

func IsSession

func IsSession() bool

func RemoveMachineryActiveWorker

func RemoveMachineryActiveWorker(worker *machinery.Worker)

func SetElastic

func SetElastic(s *elastic.Client)

func SetGoogleDriveService

func SetGoogleDriveService(service *drive.Service)

func SetKeen

func SetKeen(k *keen.Client)

func SetLogger

func SetLogger(s *logrus.Logger)

func SetMachineryRedisClient

func SetMachineryRedisClient(s *redis.Client)

func SetMachineryServer

func SetMachineryServer(s *machinery.Server)

func SetPluginExtendedList

func SetPluginExtendedList(l []string)

func SetPluginList

func SetPluginList(l []string)

func SetPolr

func SetPolr(s *polr.Polr)

func SetRedisClient

func SetRedisClient(s *redis.Client)

func SetSession

func SetSession(s *shardmanager.Manager)

Types

This section is empty.

Jump to

Keyboard shortcuts

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