client

package
v0.0.0-...-602791b Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatClient

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

func NewChatClient

func NewChatClient() ChatClient

func (*ChatClient) Connect

func (client *ChatClient) Connect(ip, port string) error

func (*ChatClient) Disconnect

func (client *ChatClient) Disconnect() error

func (*ChatClient) ReceiveChatMessagenOn

func (client *ChatClient) ReceiveChatMessagenOn(outputFormatter OutputFormatter)

func (*ChatClient) Send

func (client *ChatClient) Send(msg shared.Message) error

type OutputFormatter

type OutputFormatter interface {
	FormatMessage(msg shared.Message)
}

Jump to

Keyboard shortcuts

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