redis

package
v0.0.0-...-1cd5ac2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ChannelRefreshCooldown = 60 * time.Second

Variables

This section is empty.

Functions

func DefaultContext

func DefaultContext() context.Context

Types

type RedisClient

type RedisClient struct {
	*redis.Client
}
var Client *RedisClient

func NewRedisClient

func NewRedisClient() *RedisClient

func (*RedisClient) PublishPanelCreate

func (c *RedisClient) PublishPanelCreate(settings database.Panel)

func (*RedisClient) PublishTicketClose

func (c *RedisClient) PublishTicketClose(guildId uint64, ticketId int, userId uint64, reason string)

func (*RedisClient) TakeChannelRefreshToken

func (c *RedisClient) TakeChannelRefreshToken(ctx context.Context, guildId uint64) (bool, error)

type TicketCloseMessage

type TicketCloseMessage struct {
	GuildId  uint64
	TicketId int
	User     uint64
	Reason   string
}

Jump to

Keyboard shortcuts

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