misc

package
v0.0.0-...-2254657 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UUIDString

func UUIDString() string

Types

type ConnectionId

type ConnectionId string

func (ConnectionId) ListenerId

func (id ConnectionId) ListenerId() ListenerId

func (ConnectionId) String

func (id ConnectionId) String() string

type Item

type Item struct {
	// contains filtered or unexported fields
}

An Item is something we manage in a priority queue.

type ListenerId

type ListenerId string
var NilListenerId ListenerId = ListenerId("nil")

type MachineId

type MachineId string
var NilMachineId MachineId = MachineId("nil")

func (MachineId) ClientCmdTopic

func (id MachineId) ClientCmdTopic() TopicId

func (MachineId) MachineKey

func (id MachineId) MachineKey() string

type PriorityQueue

type PriorityQueue []*Item

A PriorityQueue implements heap.Interface and holds Items.

func (PriorityQueue) Len

func (pq PriorityQueue) Len() int

func (PriorityQueue) Less

func (pq PriorityQueue) Less(i, j int) bool

func (*PriorityQueue) Pop

func (pq *PriorityQueue) Pop() any

func (*PriorityQueue) Push

func (pq *PriorityQueue) Push(x any)

func (PriorityQueue) Swap

func (pq PriorityQueue) Swap(i, j int)

type RoomId

type RoomId string
var NilRoomId RoomId = RoomId("nil")

func GetGlobalLobbyId

func GetGlobalLobbyId() RoomId

func (RoomId) ListenerId

func (id RoomId) ListenerId() ListenerId

func (RoomId) RoomKey

func (id RoomId) RoomKey() string

func (RoomId) RoomMembershipKey

func (id RoomId) RoomMembershipKey() string

func (RoomId) String

func (id RoomId) String() string

func (RoomId) Topic

func (id RoomId) Topic() TopicId

type TopicId

type TopicId string

Jump to

Keyboard shortcuts

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