Documentation
¶
Index ¶
- Constants
- func GenerateProfileKey() []byte
- func GetAvatar(avatarURL string) (io.ReadCloser, error)
- func GetProfile(UUID string, profileKey []byte)
- func GetProfileE164(tel string) (contacts.Contact, error)
- func UpdateProfile(profileKey []byte, uuid, name string) error
- type Profile
- type ProfileSettings
Constants ¶
View Source
const ( PROFILE_PATH = "/v1/profile/%s" NAME_PADDED_LENGTH = 53 )
Variables ¶
This section is empty.
Functions ¶
func GenerateProfileKey ¶
func GenerateProfileKey() []byte
GenerateProfileKey generates a new ProfileKey
func GetAvatar ¶
func GetAvatar(avatarURL string) (io.ReadCloser, error)
GetAvatar retuns an avatar for it's url from signal cdn
func GetProfile ¶
func GetProfileE164 ¶
GetProfileE164 get a profile by a phone number
func UpdateProfile ¶
UpdateProfile ...
Types ¶
type Profile ¶
type Profile struct {
IdentityKey string `json:"identityKey"`
Name string `json:"name"`
Avatar string `json:"avatar"`
UnidentifiedAccess string `json:"uak"`
UnrestrictedUnidentifiedAccess bool `json:"uua"`
Capabilities ProfileSettings `json:"capabilities"`
Username string `json:"username"`
UUID string `json:"uuid"`
}
Profile describes the profile type
Click to show internal directories.
Click to hide internal directories.