Documentation ¶
Index ¶
- func AccountIdsToStrings(accountIds []AccountId) []string
- func AddToSocialList(appCtx AppCtx, owner AccountId, listType SocialListType, idToAdd AccountId) error
- func HashPassword(password string) (string, error)
- func RemoveFromSocialList(appCtx AppCtx, owner AccountId, listType string, idToRemove AccountId) error
- func UpdateUserContact(appCtx AppCtx, accountId AccountId, ip net.IP, port int32) error
- type AccountId
- func CreateAccount(app AppCtx, username string, password string) (AccountId, error)
- func GetSocialList(appCtx AppCtx, owner AccountId, listType SocialListType) ([]AccountId, error)
- func Login(appCtx AppCtx, username string, password string, ip net.IP, port int32) (AccountId, error)
- func NewAccountId(id string) AccountId
- func NilAccountId() AccountId
- func StringsToAccountIds(accountIds []string) []AccountId
- type AppCtx
- type SocialListType
- type UserContact
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountIdsToStrings ¶
func AddToSocialList ¶
func AddToSocialList(appCtx AppCtx, owner AccountId, listType SocialListType, idToAdd AccountId) error
func HashPassword ¶
func RemoveFromSocialList ¶
Types ¶
type AccountId ¶
type AccountId string
func CreateAccount ¶
func GetSocialList ¶
func GetSocialList(appCtx AppCtx, owner AccountId, listType SocialListType) ([]AccountId, error)
func NewAccountId ¶
func NilAccountId ¶
func NilAccountId() AccountId
func StringsToAccountIds ¶
type SocialListType ¶
type SocialListType string
const ( SocialListType_BLOCKED SocialListType = "BLOCKED" SocialListType_FOLLOWS SocialListType = "FOLLOWS" SocialListType_FOLLOWING SocialListType = "FOLLOWING" )
type UserContact ¶
func GetUserContacts ¶
func GetUserContacts(appCtx AppCtx, accountIDs []AccountId) ([]UserContact, error)
Click to show internal directories.
Click to hide internal directories.