Documentation ¶
Index ¶
- type CardRepository
- func (_m *CardRepository) Find(ctx context.Context, cr storage.Criteria) ([]card.Card, storage.PageToken, error)
- func (_m *CardRepository) Get(ctx context.Context, id string) (*card.Card, error)
- func (_m *CardRepository) Remove(ctx context.Context, id string) error
- func (_m *CardRepository) Save(ctx context.Context, v card.Card) error
- type ContactRepository
- func (_m *ContactRepository) Find(ctx context.Context, cr storage.Criteria) ([]contact.Contact, storage.PageToken, error)
- func (_m *ContactRepository) Get(ctx context.Context, id string) (*contact.Contact, error)
- func (_m *ContactRepository) GetUserContacts(ctx context.Context, criteria storage.Criteria, userID string) ([]contact.Contact, storage.PageToken, error)
- func (_m *ContactRepository) Remove(ctx context.Context, id string) error
- func (_m *ContactRepository) Save(ctx context.Context, v contact.Contact) error
- type FinancialAccountRepository
- func (_m *FinancialAccountRepository) Find(ctx context.Context, cr storage.Criteria) ([]financialaccount.FinancialAccount, storage.PageToken, error)
- func (_m *FinancialAccountRepository) Get(ctx context.Context, id string) (*financialaccount.FinancialAccount, error)
- func (_m *FinancialAccountRepository) Remove(ctx context.Context, id string) error
- func (_m *FinancialAccountRepository) Save(ctx context.Context, v financialaccount.FinancialAccount) error
- type UserRepository
- func (_m *UserRepository) Find(ctx context.Context, cr storage.Criteria) ([]user.User, storage.PageToken, error)
- func (_m *UserRepository) Get(ctx context.Context, id string) (*user.User, error)
- func (_m *UserRepository) Remove(ctx context.Context, id string) error
- func (_m *UserRepository) Save(ctx context.Context, v user.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardRepository ¶
CardRepository is an autogenerated mock type for the Repository type
func NewCardRepository ¶
func NewCardRepository(t mockConstructorTestingTNewCardRepository) *CardRepository
NewCardRepository creates a new instance of CardRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CardRepository) Find ¶
func (_m *CardRepository) Find(ctx context.Context, cr storage.Criteria) ([]card.Card, storage.PageToken, error)
Find provides a mock function with given fields: ctx, cr
type ContactRepository ¶
ContactRepository is an autogenerated mock type for the Repository type
func NewContactRepository ¶
func NewContactRepository(t mockConstructorTestingTNewContactRepository) *ContactRepository
NewContactRepository creates a new instance of ContactRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ContactRepository) Find ¶
func (_m *ContactRepository) Find(ctx context.Context, cr storage.Criteria) ([]contact.Contact, storage.PageToken, error)
Find provides a mock function with given fields: ctx, cr
func (*ContactRepository) GetUserContacts ¶
func (_m *ContactRepository) GetUserContacts(ctx context.Context, criteria storage.Criteria, userID string) ([]contact.Contact, storage.PageToken, error)
GetUserContacts provides a mock function with given fields: ctx, criteria, userID
type FinancialAccountRepository ¶
FinancialAccountRepository is an autogenerated mock type for the Repository type
func NewFinancialAccountRepository ¶
func NewFinancialAccountRepository(t mockConstructorTestingTNewFinancialAccountRepository) *FinancialAccountRepository
NewFinancialAccountRepository creates a new instance of FinancialAccountRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FinancialAccountRepository) Find ¶
func (_m *FinancialAccountRepository) Find(ctx context.Context, cr storage.Criteria) ([]financialaccount.FinancialAccount, storage.PageToken, error)
Find provides a mock function with given fields: ctx, cr
func (*FinancialAccountRepository) Get ¶
func (_m *FinancialAccountRepository) Get(ctx context.Context, id string) (*financialaccount.FinancialAccount, error)
Get provides a mock function with given fields: ctx, id
func (*FinancialAccountRepository) Remove ¶
func (_m *FinancialAccountRepository) Remove(ctx context.Context, id string) error
Remove provides a mock function with given fields: ctx, id
func (*FinancialAccountRepository) Save ¶
func (_m *FinancialAccountRepository) Save(ctx context.Context, v financialaccount.FinancialAccount) error
Save provides a mock function with given fields: ctx, v
type UserRepository ¶
UserRepository is an autogenerated mock type for the Repository type
func NewUserRepository ¶
func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository
NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserRepository) Find ¶
func (_m *UserRepository) Find(ctx context.Context, cr storage.Criteria) ([]user.User, storage.PageToken, error)
Find provides a mock function with given fields: ctx, cr