ws

package
v0.0.0-...-7787783 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(lookup serverLookup) *Handler

func (*Handler) Handle

func (h *Handler) Handle(w http.ResponseWriter, r *http.Request)

type Player

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

func NewPlayer

func NewPlayer(conn *websocket.Conn, server proto.Server) *Player

func (*Player) ExecuteSync

func (p *Player) ExecuteSync()

func (*Player) Init

func (p *Player) Init(message proto.InitMessage)

func (*Player) UID

func (p *Player) UID() uuid.UUID

func (*Player) Update

func (p *Player) Update(message proto.UpdateMessage)

Jump to

Keyboard shortcuts

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