client

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Awoo        MessageType = "awoo"
	SetName                 = "setName"
	SetRoleset              = "setRoleset"
	Vote                    = "vote"
	NightAction             = "nightAction"
	Start                   = "start"
	Quit                    = "quit"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Type       MessageType `json:"messageType"`
	PlayerName string      `json:"playerName"`
	Roleset    string      `json:"roleset"`
	Target     uuid.UUID   `json:"target"`
}

func Decode

func Decode(raw []byte) (*Message, error)

type MessageType

type MessageType string

Jump to

Keyboard shortcuts

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