test

package
v0.0.0-...-bfb5f8b Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ignore

func Ignore(_ data.Client, _ []byte)

Types

type Client

type Client struct {
	Sent   []interface{}
	Player *data.Player
	// contains filtered or unexported fields
}

func NewClient

func NewClient(f func(data.Client, []byte)) *Client

func (*Client) AssertError

func (tc *Client) AssertError(t *testing.T, msg string)

func (*Client) Broadcast

func (tc *Client) Broadcast(v interface{})

func (*Client) Error

func (tc *Client) Error(err string, params ...interface{})

func (*Client) GetPlayer

func (tc *Client) GetPlayer() *data.Player

func (*Client) Host

func (tc *Client) Host() string

func (*Client) Message

func (tc *Client) Message(v interface{})

func (*Client) Send

func (tc *Client) Send(v interface{})

func (*Client) SetPlayer

func (tc *Client) SetPlayer(p *data.Player)

type ErrorMessage

type ErrorMessage struct {
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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