Documentation ¶
Index ¶
- Constants
- func ActiveGamesForGuild(guildID string) string
- func BotTokenIdentifyLock(token string) string
- func CachedUserInfoOnGuild(userID, guildID string) string
- func CompleteTask(taskID string) string
- func ConnectCodeData(guildID, connCode string) string
- func ConnectCodePtr(guildID, code string) string
- func GetActiveGames(ctx context.Context, client *redis.Client, secs int64) int64
- func GetCachedUserInfo(ctx context.Context, client *redis.Client, userID, guildID string) string
- func GetGuildCounter(ctx context.Context, client *redis.Client) int64
- func GetTotalGames(ctx context.Context, client *redis.Client) int64
- func GetTotalUsers(ctx context.Context, client *redis.Client) int64
- func GetVersionAndCommit(ctx context.Context, client *redis.Client) (string, string)
- func GuildCacheHash(guildID string) string
- func GuildSettings(id HashedID) string
- func GuildTokenLock(guildID, hToken string) string
- func IsGameInTextChannel(ctx context.Context, client *redis.Client, guildID, textChannelID string) (bool, error)
- func IsGameInVoiceChannel(ctx context.Context, client *redis.Client, guildID, voiceChannelID string) (bool, error)
- func RefreshTotalGames(ctx context.Context, client *redis.Client, pool *pgxpool.Pool) int64
- func RefreshTotalUsers(ctx context.Context, client *redis.Client, pool *pgxpool.Pool) int64
- func RequestsByType(typeStr string) string
- func RoomCodesForConnCode(connCode string) string
- func SetCachedUserInfo(ctx context.Context, client *redis.Client, userID, guildID, userData string) error
- func SetVersionAndCommit(ctx context.Context, client *redis.Client, version, commit string)
- func SnowflakeLockID(snowflake string) string
- func TasksList(connectCode string) string
- func TextChannelPtr(guildID, channelID string) string
- func UserRateLimitGeneral(userID string) string
- func UserRateLimitSpecific(userID, cmdType string) string
- func UserSoftban(userID string) string
- func UserSoftbanCount(userID string) string
- func VoiceChangesForGameCodeLock(connectCode string) string
- func VoiceChannelPtr(guildID, channelID string) string
- type HashedID
Constants ¶
View Source
const ActiveGamesZSet = "automuteus:games"
View Source
const CachedUserDataExpiration = time.Hour * 12
View Source
const Commit = "automuteus:commit"
View Source
const EventsNamespace = "automuteus:capture:events"
View Source
const JobNamespace = "automuteus:jobs:"
View Source
const NotFound = -1
View Source
const TotalGameExpiration = time.Minute * 5
View Source
const TotalGames = "automuteus:games:total"
View Source
const TotalGuildsSet = "automuteus:count:guilds"
View Source
const TotalUsers = "automuteus:users:total"
View Source
const TotalUsersExpiration = time.Minute * 5
View Source
const Version = "automuteus:version"
Variables ¶
This section is empty.
Functions ¶
func ActiveGamesForGuild ¶
func BotTokenIdentifyLock ¶
func CachedUserInfoOnGuild ¶
func CompleteTask ¶
func ConnectCodeData ¶
func ConnectCodePtr ¶
func GetActiveGames ¶
func GetCachedUserInfo ¶
func GetGuildCounter ¶
func GetTotalGames ¶
func GetTotalUsers ¶
func GetVersionAndCommit ¶
func GuildCacheHash ¶
func GuildSettings ¶
func GuildTokenLock ¶
func IsGameInTextChannel ¶
func IsGameInVoiceChannel ¶
func RefreshTotalGames ¶
func RefreshTotalUsers ¶
func RequestsByType ¶
func RoomCodesForConnCode ¶
func SetCachedUserInfo ¶
func SetVersionAndCommit ¶
func SnowflakeLockID ¶
func TextChannelPtr ¶
func UserRateLimitGeneral ¶
func UserRateLimitSpecific ¶
func UserSoftban ¶
func UserSoftbanCount ¶
func VoiceChannelPtr ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.