Documentation ¶
Index ¶
- func ResolveContacts(mctx libkb.MetaContext, provider ContactsProvider, contacts []keybase1.Contact, ...) (res []keybase1.ProcessedContact, err error)
- type CachedContactsProvider
- func (c *CachedContactsProvider) FillUsernames(mctx libkb.MetaContext, res []keybase1.ProcessedContact)
- func (c *CachedContactsProvider) LookupEmails(mctx libkb.MetaContext, emails []keybase1.EmailAddress) (res []ContactLookupResult, err error)
- func (c *CachedContactsProvider) LookupPhoneNumbers(mctx libkb.MetaContext, numbers []keybase1.RawPhoneNumber, ...) (res []ContactLookupResult, err error)
- type ContactLookupResult
- type ContactsProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveContacts ¶
func ResolveContacts(mctx libkb.MetaContext, provider ContactsProvider, contacts []keybase1.Contact, regionCode keybase1.RegionCode) (res []keybase1.ProcessedContact, err error)
ResolveContacts resolves contacts with cache for UI. See API documentation in phone_numbers.avdl
regionCode is optional, user region should be provided if it's known. It's used when resolving local phone numbers, they are assumed to be local to the user, so in the same region.
Types ¶
type CachedContactsProvider ¶
type CachedContactsProvider struct {
Provider ContactsProvider
}
func (*CachedContactsProvider) FillUsernames ¶
func (c *CachedContactsProvider) FillUsernames(mctx libkb.MetaContext, res []keybase1.ProcessedContact)
func (*CachedContactsProvider) LookupEmails ¶
func (c *CachedContactsProvider) LookupEmails(mctx libkb.MetaContext, emails []keybase1.EmailAddress) (res []ContactLookupResult, err error)
func (*CachedContactsProvider) LookupPhoneNumbers ¶
func (c *CachedContactsProvider) LookupPhoneNumbers(mctx libkb.MetaContext, numbers []keybase1.RawPhoneNumber, userRegion keybase1.RegionCode) (res []ContactLookupResult, err error)
type ContactLookupResult ¶
type ContactsProvider ¶
type ContactsProvider interface { LookupPhoneNumbers(libkb.MetaContext, []keybase1.RawPhoneNumber, keybase1.RegionCode) ([]ContactLookupResult, error) LookupEmails(libkb.MetaContext, []keybase1.EmailAddress) ([]ContactLookupResult, error) FillUsernames(libkb.MetaContext, []keybase1.ProcessedContact) }
Click to show internal directories.
Click to hide internal directories.