leaderboard

package
v0.0.0-...-2719d53 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLeaderboard

func GetLeaderboard(c *gin.Context)

Types

type Message

type Message struct {
	Type MessageType `json:"type"`
	Pops any         `json:"pops"`
}

type MessageType

type MessageType string
const (
	MessageTypeInitPop MessageType = "init_pop"
	MessageTypeNextPop MessageType = "next_pop"
)

type SendMessageHandler

type SendMessageHandler func(m *Message) (string, error)

type SendPingHandler

type SendPingHandler func(t time.Time) (string, error)

Jump to

Keyboard shortcuts

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