Documentation ¶
Index ¶
- type User
- func (u *User) GetAvatar(roomID string) ([]byte, error)
- func (u *User) GetCli() *gomatrix.Client
- func (u *User) GetDisplayName(roomID string) (string, error)
- func (u *User) GetMXID() string
- func (u *User) SetAvatar(roomID string, avatar []byte)
- func (u *User) SetCli(cli *gomatrix.Client)
- func (u *User) SetDisplayName(roomID string, name string)
- func (u *User) SetMXID(id string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
User holds the needed User data and allows to work with that. It gets normally loaded from the cache
func (*User) GetDisplayName ¶
GetDisplayName returns the displayName from the current User
func (*User) SetCli ¶
SetCli adds the gomatrix.Client to the current User. This only happens if the User is the current User aka the one that logged into the client.
func (*User) SetDisplayName ¶
SetDisplayName adds the displayName to the current User
Click to show internal directories.
Click to hide internal directories.