Documentation ¶
Index ¶
Constants ¶
View Source
const ( PROFILE_PATH = "/v1/profile/%s" PROFILE_CREDENTIAL_PATH = "/v1/profile/%s/%s/%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 returns an avatar for it's url from signal cdn
func GetProfileE164 ¶
GetProfileE164 get a profile by a phone number
func UpdateProfile ¶
UpdateProfile ...
Types ¶
type Profile ¶
type Profile struct { IdentityKey string `json:"identityKey"` UnidentifiedAccess string `json:"unidentifiedAccess"` UnrestrictedUnidentifiedAccess bool `json:"unrestrictedUnidentifiedAccess"` Capabilities config.AccountCapabilities `json:"capabilities"` Badges []string `json:"badges"` UUID string `json:"uuid"` Name string `json:"name"` About string `json:"about"` AboutEmoji string `json:"aboutEmoji"` Avatar string `json:"avatar"` PaymentAddress string `json:"paymentAddress"` Credential []byte `json:"credential"` }
Profile describes the profile type
type ProfileSettings ¶
type ProfileSettings struct { Version string `json:"version"` Name []byte `json:"name"` About []byte `json:"about"` AboutEmoji []byte `json:"aboutEmoji"` Avatar bool `json:"avatar"` Commitment []byte `json:"commitment"` BadgeIds []string `json:"badgeIds"` // contains filtered or unexported fields }
Profile ...
Click to show internal directories.
Click to hide internal directories.