request

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardDavContactsProvider

type CardDavContactsProvider struct {
	AuthClient auth.AuthenticationClient
	URL        string
}

CardDavContactsProvider represents a provider which return contacts via CardDav protocol

func (CardDavContactsProvider) GetContacts

func (carddav CardDavContactsProvider) GetContacts() ([]contact.Contact, error)

GetContacts returns contacts via a CardDav HTTP API call

type ContactsProvider

type ContactsProvider interface {
	GetContacts() ([]contact.Contact, error)
}

ContactsProvider calls a HTTP Contact API and returns a slice of Contacts regardless of protocol or authentication

type GoogleContactsProvider

type GoogleContactsProvider struct {
	AuthClient auth.AuthenticationClient
	URL        string
}

GoogleContactsProvider represents a provider which return contacts via Google People API

func (GoogleContactsProvider) GetContacts

func (gp GoogleContactsProvider) GetContacts() ([]contact.Contact, error)

GetContacts returns contacts via a Google People API call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL