Versions in this module Expand all Collapse all v0 v0.0.4 Mar 19, 2021 Changes in this version + type Client struct + func NewClient(serverURL *url.URL, debug bool) (*Client, error) + func (c *Client) AddStatusListener(listener func(int)) + func (c *Client) ArchiveChannel(roomID string) error + func (c *Client) Close() + func (c *Client) ConnectionAway() error + func (c *Client) ConnectionOnline() error + func (c *Client) CreateChannel(name string, users []string) error + func (c *Client) CreateGroup(name string, users []string) error + func (c *Client) DeleteChannel(roomID string) error + func (c *Client) DeleteMessage(message *models.Message) error + func (c *Client) EditMessage(message *models.Message) error + func (c *Client) GetChannelID(name string) (string, error) + func (c *Client) GetChannelRoles(roomID string) error + func (c *Client) GetChannelSubscriptions() ([]models.ChannelSubscription, error) + func (c *Client) GetChannelsIn() ([]models.Channel, error) + func (c *Client) GetPermissions() ([]models.Permission, error) + func (c *Client) GetPublicSettings() ([]models.Setting, error) + func (c *Client) GetUserRoles() error + func (c *Client) JoinChannel(roomID string) error + func (c *Client) LeaveChannel(roomID string) error + func (c *Client) LoadHistory(roomID string) ([]models.Message, error) + func (c *Client) Login(credentials *models.UserCredentials) (*models.User, error) + func (c *Client) NewMessage(channel *models.Channel, text string) *models.Message + func (c *Client) PinMessage(message *models.Message) error + func (c *Client) ReactToMessage(message *models.Message, reaction string) error + func (c *Client) Reconnect() + func (c *Client) RegisterUser(credentials *models.UserCredentials) (*models.User, error) + func (c *Client) SendMessage(message *models.Message) (*models.Message, error) + func (c *Client) SetChannelDescription(roomID string, description string) error + func (c *Client) SetChannelJoinCode(roomID string, joinCode string) error + func (c *Client) SetChannelReadOnly(roomID string, readOnly bool) error + func (c *Client) SetChannelTopic(roomID string, topic string) error + func (c *Client) SetChannelType(roomID string, roomType string) error + func (c *Client) SetPresence(status string) error + func (c *Client) StarMessage(message *models.Message) error + func (c *Client) StartTyping(roomID string, username string) error + func (c *Client) StopTyping(roomID string, username string) error + func (c *Client) Sub(name string, args ...interface{}) (chan string, error) + func (c *Client) SubscribeToMessageStream(channel *models.Channel, msgChannel chan models.Message) error + func (c *Client) UnArchiveChannel(roomID string) error + func (c *Client) UnPinMessage(message *models.Message) error + func (c *Client) UnStarMessage(message *models.Message) error