wat_client_api_lib

package
v0.0.0-...-88dae93 Latest Latest
Warning

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

Go to latest
Published: May 11, 2017 License: MIT Imports: 8 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 {
	Connect(address, nick string) error
	SendMessage(msg ClientMessage) error
	RecvMessage() (*ServerMessage, error)
	Close()
}

func NewClient

func NewClient() Client

type ClientMessage

type ClientMessage struct {
	Content string
}

type Location

type Location struct {
	City string
	Loc  string
}

type NickAlreadyInUse

type NickAlreadyInUse struct{}

func (*NickAlreadyInUse) Error

func (*NickAlreadyInUse) Error() string

type ServerMessage

type ServerMessage struct {
	Nick     string
	Content  string
	Location *Location
}

Jump to

Keyboard shortcuts

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