Documentation ¶
Index ¶
- func EvictCacheForGuild(guildID int64)
- func GetGuildFlags(guildID int64) ([]string, error)
- func GuildHasFlag(guildID int64, flag string) (bool, error)
- func GuildHasFlagOrLogError(guildID int64, flag string) bool
- func MarkGuildDirty(guildID int64)
- func RegisterPlugin()
- func RetryGetGuildFlags(guildID int64) (flags []string, err error)
- func UpdateGuildFlags(guildID int64) error
- func UpdatePluginFeatureFlags(guildID int64, p PluginWithFeatureFlags) error
- type Plugin
- type PluginWithFeatureFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvictCacheForGuild ¶ added in v1.24.11
func EvictCacheForGuild(guildID int64)
EvictCacheForGuild evicts the specified guild's featureflag cache
func GetGuildFlags ¶
GetGuildFlags returns the feature flags a guild has
func GuildHasFlag ¶
GuildHasFlag returns true if the target guild has the provided flag
func GuildHasFlagOrLogError ¶
GuildHasFlagOrLogError is the same as GuildHasFlag but will handle the error and log it
func MarkGuildDirty ¶
func MarkGuildDirty(guildID int64)
MarkGuildDirty marks a guild's feature flags dirty
func RegisterPlugin ¶
func RegisterPlugin()
RegisterPlugin registers the mqueue plugin into the plugin system and also initializes it
func RetryGetGuildFlags ¶ added in v1.24.11
RetryGetGuildFlags is the same as GetGuildFlags but will retry fetching the flags up to around 2 minutes before giving up on errors
func UpdateGuildFlags ¶
UpdateGuildFlags updates the provided guilds feature flags
func UpdatePluginFeatureFlags ¶
func UpdatePluginFeatureFlags(guildID int64, p PluginWithFeatureFlags) error
UpdatePluginFeatureFlags updates the feature flags of the provided plugin for the provided guild
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin represents the mqueue plugin
func (*Plugin) PluginInfo ¶
func (p *Plugin) PluginInfo() *common.PluginInfo
PluginInfo implements common.Plugin
func (*Plugin) RunBackgroundWorker ¶
func (p *Plugin) RunBackgroundWorker()
RunBackgroundWorker implements backgroundworkers.BackgroundWorkerPlugin
func (*Plugin) StopBackgroundWorker ¶
StopBackgroundWorker implements backgroundworkers.BackgroundWorkerPlugin