Documentation
¶
Index ¶
- type Client
- func (c *Client) Broadcast(message *event.MessageEventContent) (success bool)
- func (c *Client) Encrypt() error
- func (c *Client) Login() error
- func (c *Client) Send(roomID id.RoomID, message *event.MessageEventContent) error
- func (c *Client) Sync(ctx context.Context, cancel context.CancelFunc, wg *sync.WaitGroup)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Broadcast ¶
func (c *Client) Broadcast(message *event.MessageEventContent) (success bool)
type Config ¶
type Config struct { AllowedRooms []string `json:"allowed_rooms"` DeviceName string `json:"device_name"` Greeting string LogLevel uint `json:"log_level"` HomeserverURL string `json:"homeserver_url"` UserIdentifier string `json:"user_identifier"` Password string PickleKey string `json:"pickle_key"` }
Click to show internal directories.
Click to hide internal directories.