Documentation ¶
Overview ¶
Package client implements simple console chat client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCredentials = errors.New("invalid credentials")
ErrInvalidCredentials returned when username or password are incorrect.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a console chat client
func (*Client) DownloadFile ¶
DownloadFile gets a file from the chat.
func (*Client) Listen ¶
Listen logins into chat and monitors it for incoming messages and prints messages to stdout.
type Config ¶
type Config struct { Address string `json:"address"` User string `json:"user"` Password string `json:"password"` Debug bool `json:"debug"` SSLSkipVerify bool `json:"ssl_skip_verify"` CacheDir string `json:"-"` // contains filtered or unexported fields }
Config is a client config.
func (*Config) LoadDefault ¶
func (c *Config) LoadDefault()
LoadDefault loads default json config file ~/.config/chat/chatc.json.
Click to show internal directories.
Click to hide internal directories.