Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoSuchUser results when a message is sent to an offline or // non-existent user. ErrNoSuchUser = errors.New("no such user found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Dial(address string) error Send(msg Message) error Recv() (Message, error) Close() }
Client is a chat client that connects to chat server for a user.
type Message ¶
Message represents a message sent from one user to another. 'To' is the public key of the user the message is for and 'From' is the public key of the user sending the message.
Click to show internal directories.
Click to hide internal directories.