Versions in this module Expand all Collapse all v0 v0.0.0 Aug 29, 2016 Changes in this version + var ErrAccountMismatch = errors.New("Account mismatch") + func RegisterRoutes(router *mux.Router, service ServiceInterface) + type Adapter struct + func NewAdapter(cnf *config.Config) *Adapter + func (a *Adapter) AuthCodeURL(state string) string + func (a *Adapter) Exchange(code string) (*oauth2.Token, error) + func (a *Adapter) GetMe(accessToken string) (fb.Result, error) + type AdapterInterface interface + AuthCodeURL func(state string) string + Exchange func(code string) (*oauth2.Token, error) + GetMe func(accessToken string) (fb.Result, error) + type AdapterMock struct + func (_m *AdapterMock) AuthCodeURL(state string) string + func (_m *AdapterMock) Exchange(code string) (*oauth2.Token, error) + func (_m *AdapterMock) GetMe(accessToken string) (fb.Result, error) + type ProfilePicture struct + Data *ProfilePictureData + type ProfilePictureData struct + Height int + IsSilhouette bool + URL string + Width int + type Service struct + func NewService(cnf *config.Config, db *gorm.DB, accountsService accounts.ServiceInterface, ...) *Service + func (s *Service) GetAccountsService() accounts.ServiceInterface + func (s *Service) GetAdapter() AdapterInterface + func (s *Service) LoginHandler(w http.ResponseWriter, r *http.Request) + type ServiceInterface interface + GetAccountsService func() accounts.ServiceInterface + LoginHandler func(w http.ResponseWriter, r *http.Request) + type UserProfile struct + Email *string + FirstName string + ID string + LastName string + Name string + Picture *ProfilePicture + func (u *UserProfile) GetPictureURL() string