client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Send(innerMessage interface{}) error
	SetPlayer(player player.Player)
	GetPlayer() player.Player
	Close()
}

noinspection GoNameStartsWithPackageName

type TestClient

type TestClient struct {
	Player player.Player
	// contains filtered or unexported fields
}

func NewTestClient

func NewTestClient(p player.Player) *TestClient

func (*TestClient) Close

func (c *TestClient) Close()

func (*TestClient) GetPlayer

func (c *TestClient) GetPlayer() player.Player

func (*TestClient) Send

func (c *TestClient) Send(msg interface{}) error

func (*TestClient) SetPlayer

func (c *TestClient) SetPlayer(p player.Player)

Jump to

Keyboard shortcuts

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