talk

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Talker

type Talker interface {
	Connect(mainCtx context.Context, url url.URL, playerSpec arena.PlayerSpecifications) (ctx context.Context, err error)
	Send(data []byte) error
	Listen() <-chan []byte
	ListenInterruption() <-chan *websocket.CloseError
	Close()
}

func NewTalker

func NewTalker(logger *logrus.Entry) Talker

NewTalker creates a new talker that knows how to talk to the game server

Jump to

Keyboard shortcuts

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