message

package
v0.0.0-...-4134f27 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindUpdate   = "update"
	KindJoin     = "join"
	KindLeave    = "leave"
	KindStanding = "standing"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Kind     string
	User     User
	Standing []Result `json:",omitempty"`
}

func (*Message) Validate

func (m *Message) Validate() bool

type Result

type Result struct {
	Name  string
	Score int
}

type User

type User struct {
	ID, Name       string
	X16, Y16, VY16 int
	Running        bool
	Score          int
}

Jump to

Keyboard shortcuts

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