Documentation ¶
Index ¶
- Constants
- func Ack(ctx context.Context, redis *redis.Client, connCode string)
- func AckSubscribe(ctx context.Context, redis *redis.Client, connCode string) *redis.PubSub
- func GetActiveGames(client *redis.Client, secs int64) int64
- func GetGuildCounter(client *redis.Client) int64
- func GetVersionAndCommit(client *redis.Client) (string, string)
- func PushJob(ctx context.Context, redis *redis.Client, connCode string, jobType JobType, ...) error
- func RemoveActiveGame(client *redis.Client, connectCode string)
- func Subscribe(ctx context.Context, redis *redis.Client, connCode string) *redis.PubSub
- type Broker
- func (broker *Broker) AckWorker(ctx context.Context, connCode string, killChan <-chan bool)
- func (broker *Broker) Start(port string)
- func (broker *Broker) TaskCompletionListener(taskID string, taskChan <-chan bool, killChan <-chan bool)
- func (broker *Broker) TasksListener(server *socketio.Server, connectCode string, killchan <-chan bool)
- type GameLobby
- type Job
- type JobType
- type Resp
Constants ¶
View Source
const ConnectCodeLength = 8
View Source
const JobNamespace = "automuteus:jobs:"
View Source
const JobTTLSeconds = 3600
Variables ¶
This section is empty.
Functions ¶
func AckSubscribe ¶
func GetActiveGames ¶
func GetGuildCounter ¶
func GetGuildCounter(client *redis.Client) int64
func GetVersionAndCommit ¶ added in v0.0.3
func RemoveActiveGame ¶ added in v0.1.0
func RemoveActiveGame(client *redis.Client, connectCode string)
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.