client

package
v0.0.0-...-4e28f1d Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutomatedClient

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

func NewAutomatedClient

func NewAutomatedClient(ip string, port int, commands []CommandHandler) AutomatedClient

func (AutomatedClient) Run

func (au AutomatedClient) Run()

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) Connect

func (c *Client) Connect(host string, port int) error

func (*Client) Read

func (c *Client) Read() ([]byte, error)

func (*Client) Write

func (c *Client) Write(b []byte)

func (*Client) WriteBlock

func (c *Client) WriteBlock(b *block.Block)

type Command

type Command struct {
	Data map[string]interface{}
	CommandHandler
	// contains filtered or unexported fields
}

type CommandHandler

type CommandHandler interface {
	Execute(*Client)
}

type Config

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

type EnterLobby

type EnterLobby struct {
	Command
}

type Init

type Init struct {
	Command
}

func (Init) Execute

func (cmd Init) Execute(c *Client)

type Login

type Login struct {
	Command
}

func (Login) Execute

func (cmd Login) Execute(c *Client)

Jump to

Keyboard shortcuts

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