mocks

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2016 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailFactoryInterface

type EmailFactoryInterface struct {
	mock.Mock
}

func (*EmailFactoryInterface) NewConfirmationEmail

func (_m *EmailFactoryInterface) NewConfirmationEmail(confirmation *accounts.Confirmation) (*email.Message, error)

func (*EmailFactoryInterface) NewInvitationEmail

func (_m *EmailFactoryInterface) NewInvitationEmail(invitation *accounts.Invitation) (*email.Message, error)

func (*EmailFactoryInterface) NewPasswordResetEmail

func (_m *EmailFactoryInterface) NewPasswordResetEmail(passwordReset *accounts.PasswordReset) (*email.Message, error)

type ServiceInterface

type ServiceInterface struct {
	mock.Mock
}

func (*ServiceInterface) ConfirmEmailHandler

func (_m *ServiceInterface) ConfirmEmailHandler(w http.ResponseWriter, r *http.Request)

func (*ServiceInterface) ConfirmInvitation

func (_m *ServiceInterface) ConfirmInvitation(invitation *accounts.Invitation, password string) error

func (*ServiceInterface) ConfirmInvitationHandler

func (_m *ServiceInterface) ConfirmInvitationHandler(w http.ResponseWriter, r *http.Request)

func (*ServiceInterface) ConfirmPasswordResetHandler

func (_m *ServiceInterface) ConfirmPasswordResetHandler(w http.ResponseWriter, r *http.Request)

func (*ServiceInterface) ConfirmUser

func (_m *ServiceInterface) ConfirmUser(user *accounts.User) error

func (*ServiceInterface) CreateAccount

func (_m *ServiceInterface) CreateAccount(name string, description string, key string, secret string, redirectURI string) (*accounts.Account, error)

func (*ServiceInterface) CreatePasswordResetHandler

func (_m *ServiceInterface) CreatePasswordResetHandler(w http.ResponseWriter, r *http.Request)

func (*ServiceInterface) CreateSuperuser

func (_m *ServiceInterface) CreateSuperuser(account *accounts.Account, email string, password string) (*accounts.User, error)

func (*ServiceInterface) CreateUser

func (_m *ServiceInterface) CreateUser(account *accounts.Account, userRequest *accounts.UserRequest) (*accounts.User, error)

func (*ServiceInterface) CreateUserHandler

func (_m *ServiceInterface) CreateUserHandler(w http.ResponseWriter, r *http.Request)

func (*ServiceInterface) CreateUserTx

func (_m *ServiceInterface) CreateUserTx(tx *gorm.DB, account *accounts.Account, userRequest *accounts.UserRequest) (*accounts.User, error)

func (*ServiceInterface) FindAccountByID

func (_m *ServiceInterface) FindAccountByID(accountID uint) (*accounts.Account, error)

func (*ServiceInterface) FindAccountByName

func (_m *ServiceInterface) FindAccountByName(name string) (*accounts.Account, error)

func (*ServiceInterface) FindAccountByOauthClientID

func (_m *ServiceInterface) FindAccountByOauthClientID(oauthClientID uint) (*accounts.Account, error)

func (*ServiceInterface) FindConfirmationByReference

func (_m *ServiceInterface) FindConfirmationByReference(reference string) (*accounts.Confirmation, error)

func (*ServiceInterface) FindInvitationByID

func (_m *ServiceInterface) FindInvitationByID(invitationID uint) (*accounts.Invitation, error)

func (*ServiceInterface) FindInvitationByReference

func (_m *ServiceInterface) FindInvitationByReference(reference string) (*accounts.Invitation, error)

func (*ServiceInterface) FindPasswordResetByReference

func (_m *ServiceInterface) FindPasswordResetByReference(reference string) (*accounts.PasswordReset, error)

func (*ServiceInterface) FindUserByEmail

func (_m *ServiceInterface) FindUserByEmail(email string) (*accounts.User, error)

func (*ServiceInterface) FindUserByFacebookID

func (_m *ServiceInterface) FindUserByFacebookID(facebookID string) (*accounts.User, error)

func (*ServiceInterface) FindUserByID

func (_m *ServiceInterface) FindUserByID(userID uint) (*accounts.User, error)

func (*ServiceInterface) FindUserByOauthUserID

func (_m *ServiceInterface) FindUserByOauthUserID(oauthUserID uint) (*accounts.User, error)

func (*ServiceInterface) GetClientCredentials

func (_m *ServiceInterface) GetClientCredentials(r *http.Request) (*accounts.Account, *accounts.User, error)

func (*ServiceInterface) GetConfig

func (_m *ServiceInterface) GetConfig() *config.Config

func (*ServiceInterface) GetMyUserHandler

func (_m *ServiceInterface) GetMyUserHandler(w http.ResponseWriter, r *http.Request)

func (*ServiceInterface) GetOauthService

func (_m *ServiceInterface) GetOauthService() oauth.ServiceInterface

func (*ServiceInterface) GetOrCreateFacebookUser

func (_m *ServiceInterface) GetOrCreateFacebookUser(account *accounts.Account, facebookID string, userRequest *accounts.UserRequest) (*accounts.User, error)

func (*ServiceInterface) GetUserCredentials

func (_m *ServiceInterface) GetUserCredentials(token string) (*accounts.Account, *accounts.User, error)

func (*ServiceInterface) GetUserHandler

func (_m *ServiceInterface) GetUserHandler(w http.ResponseWriter, r *http.Request)

func (*ServiceInterface) InviteUser

func (_m *ServiceInterface) InviteUser(invitedByUser *accounts.User, invitationRequest *accounts.InvitationRequest) (*accounts.Invitation, error)

func (*ServiceInterface) InviteUserHandler

func (_m *ServiceInterface) InviteUserHandler(w http.ResponseWriter, r *http.Request)

func (*ServiceInterface) InviteUserTx

func (_m *ServiceInterface) InviteUserTx(tx *gorm.DB, invitedByUser *accounts.User, invitationRequest *accounts.InvitationRequest) (*accounts.Invitation, error)

func (*ServiceInterface) ResetPassword

func (_m *ServiceInterface) ResetPassword(passwordReset *accounts.PasswordReset, password string) error

func (*ServiceInterface) UpdateUser

func (_m *ServiceInterface) UpdateUser(user *accounts.User, userRequest *accounts.UserRequest) error

func (*ServiceInterface) UpdateUserHandler

func (_m *ServiceInterface) UpdateUserHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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