capture

package
Version: v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const EventTTLSeconds = 3600

Variables

This section is empty.

Functions

func PopRawEvent

func PopRawEvent(ctx context.Context, redis *redis.Client, connCode string, timeout time.Duration) (string, error)

func PushEvent

func PushEvent(ctx context.Context, redis *redis.Client, connCode string, jobType EventType, payload string) error

Types

type Event

type Event struct {
	EventType EventType `json:"type"`
	Payload   []byte    `json:"payload"`
}

type EventType

type EventType int
const (
	Connection EventType = iota
	Lobby
	State
	Player
	GameOver
)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL