Versions in this module Expand all Collapse all v0 v0.0.0 Aug 29, 2016 Changes in this version + type EmailFactoryInterface struct + func (_m *EmailFactoryInterface) NewConfirmationEmail(confirmation *accounts.Confirmation) (*email.Message, error) + func (_m *EmailFactoryInterface) NewInvitationEmail(invitation *accounts.Invitation) (*email.Message, error) + func (_m *EmailFactoryInterface) NewPasswordResetEmail(passwordReset *accounts.PasswordReset) (*email.Message, error) + type ServiceInterface struct + func (_m *ServiceInterface) ConfirmEmailHandler(w http.ResponseWriter, r *http.Request) + func (_m *ServiceInterface) ConfirmInvitation(invitation *accounts.Invitation, password string) error + func (_m *ServiceInterface) ConfirmInvitationHandler(w http.ResponseWriter, r *http.Request) + func (_m *ServiceInterface) ConfirmPasswordResetHandler(w http.ResponseWriter, r *http.Request) + func (_m *ServiceInterface) ConfirmUser(user *accounts.User) error + func (_m *ServiceInterface) CreateAccount(name string, description string, key string, secret string, redirectURI string) (*accounts.Account, error) + func (_m *ServiceInterface) CreatePasswordResetHandler(w http.ResponseWriter, r *http.Request) + func (_m *ServiceInterface) CreateSuperuser(account *accounts.Account, email string, password string) (*accounts.User, error) + func (_m *ServiceInterface) CreateUser(account *accounts.Account, userRequest *accounts.UserRequest) (*accounts.User, error) + func (_m *ServiceInterface) CreateUserHandler(w http.ResponseWriter, r *http.Request) + func (_m *ServiceInterface) CreateUserTx(tx *gorm.DB, account *accounts.Account, userRequest *accounts.UserRequest) (*accounts.User, error) + func (_m *ServiceInterface) FindAccountByID(accountID uint) (*accounts.Account, error) + func (_m *ServiceInterface) FindAccountByName(name string) (*accounts.Account, error) + func (_m *ServiceInterface) FindAccountByOauthClientID(oauthClientID uint) (*accounts.Account, error) + func (_m *ServiceInterface) FindConfirmationByReference(reference string) (*accounts.Confirmation, error) + func (_m *ServiceInterface) FindInvitationByID(invitationID uint) (*accounts.Invitation, error) + func (_m *ServiceInterface) FindInvitationByReference(reference string) (*accounts.Invitation, error) + func (_m *ServiceInterface) FindPasswordResetByReference(reference string) (*accounts.PasswordReset, error) + func (_m *ServiceInterface) FindUserByEmail(email string) (*accounts.User, error) + func (_m *ServiceInterface) FindUserByFacebookID(facebookID string) (*accounts.User, error) + func (_m *ServiceInterface) FindUserByID(userID uint) (*accounts.User, error) + func (_m *ServiceInterface) FindUserByOauthUserID(oauthUserID uint) (*accounts.User, error) + func (_m *ServiceInterface) GetClientCredentials(r *http.Request) (*accounts.Account, *accounts.User, error) + func (_m *ServiceInterface) GetConfig() *config.Config + func (_m *ServiceInterface) GetMyUserHandler(w http.ResponseWriter, r *http.Request) + func (_m *ServiceInterface) GetOauthService() oauth.ServiceInterface + func (_m *ServiceInterface) GetOrCreateFacebookUser(account *accounts.Account, facebookID string, ...) (*accounts.User, error) + func (_m *ServiceInterface) GetUserCredentials(token string) (*accounts.Account, *accounts.User, error) + func (_m *ServiceInterface) GetUserHandler(w http.ResponseWriter, r *http.Request) + func (_m *ServiceInterface) InviteUser(invitedByUser *accounts.User, invitationRequest *accounts.InvitationRequest) (*accounts.Invitation, error) + func (_m *ServiceInterface) InviteUserHandler(w http.ResponseWriter, r *http.Request) + func (_m *ServiceInterface) InviteUserTx(tx *gorm.DB, invitedByUser *accounts.User, ...) (*accounts.Invitation, error) + func (_m *ServiceInterface) ResetPassword(passwordReset *accounts.PasswordReset, password string) error + func (_m *ServiceInterface) UpdateUser(user *accounts.User, userRequest *accounts.UserRequest) error + func (_m *ServiceInterface) UpdateUserHandler(w http.ResponseWriter, r *http.Request)