Documentation
¶
Index ¶
- Constants
- func ActiveGamesForGuild(guildID string) string
- func BotTokenIdentifyLock(token 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 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 string) string
- func GuildTokenLock(guildID, hToken string) string
- func GuildTokensKey(guildID string) string
- 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 SetVersionAndCommit(ctx context.Context, client *redis.Client, version, commit string)
- func SnowflakeLockID(snowflake string) string
- func TasksSubscribe(connectCode string) string
- func TextChannelPtr(guildID, channelID string) string
- func VoiceChangesForGameCodeLock(connectCode string) string
- func VoiceChannelPtr(guildID, channelID string) string
Constants ¶
View Source
const ActiveGamesZSet = "automuteus:games"
View Source
const AllTokensHSet = "automuteus:alltokens"
View Source
const Commit = "automuteus:commit"
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 CompleteTask ¶
func ConnectCodeData ¶
func ConnectCodePtr ¶
func GetActiveGames ¶ added in v0.0.2
func GetGuildCounter ¶ added in v0.0.2
func GetTotalGames ¶ added in v0.0.4
func GetTotalUsers ¶ added in v0.0.4
func GetVersionAndCommit ¶ added in v0.0.2
func GuildCacheHash ¶
func GuildSettings ¶
func GuildTokenLock ¶
func RefreshTotalGames ¶ added in v0.0.4
func RefreshTotalUsers ¶ added in v0.0.4
func RequestsByType ¶
func RoomCodesForConnCode ¶
func SetVersionAndCommit ¶ added in v0.0.4
func SnowflakeLockID ¶
func TasksSubscribe ¶
func TextChannelPtr ¶
func VoiceChannelPtr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.