Documentation ¶
Index ¶
- Variables
- type Client
- func (b *Client) Connect() error
- func (b *Client) GetChats() ([]string, error)
- func (b *Client) JoinChat(chat string) error
- func (b *Client) JoinChats(chatnames ...string)
- func (b *Client) PostMessage(chat, text string)
- func (b *Client) StartListen() <-chan events.Event
- func (b *Client) StartSendingKeepAlive()
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrJoinChat = errors.New("couldn't join chat")
)
errors
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Username string Password string URL string // contains filtered or unexported fields }
Client ...
func (*Client) PostMessage ¶
PostMessage posts message in a new goroutine
func (*Client) StartListen ¶
StartListen polls events and sends them into channel. on network error closes that channel.
func (*Client) StartSendingKeepAlive ¶
func (b *Client) StartSendingKeepAlive()
StartSendingKeepAlive sends keep-alive packages forever with interfal 10s
Click to show internal directories.
Click to hide internal directories.