accountssvc

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

package accountssvc is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountsService

type AccountsService interface {
	Insert(ac *model.Account, serverTime int64) error
	GetByID(accountID int64) (*model.Account, error)
	Update(ac *model.Account) error
	Delete(accountID int64) error
}

AccountsService is a CRUD to the database

func NewAccountsService

NewAccountsService creates a service to interact with PostgreSQL

type MockAccountsService added in v0.17.0

type MockAccountsService struct {
	// contains filtered or unexported fields
}

MockAccountsService is a mock of AccountsService interface.

func NewMockAccountsService added in v0.17.0

func NewMockAccountsService(ctrl *gomock.Controller) *MockAccountsService

NewMockAccountsService creates a new mock instance.

func (*MockAccountsService) Delete added in v0.17.0

func (m *MockAccountsService) Delete(accountID int64) error

Delete mocks base method.

func (*MockAccountsService) EXPECT added in v0.17.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAccountsService) GetByID added in v0.17.0

func (m *MockAccountsService) GetByID(accountID int64) (*accounts.Account, error)

GetByID mocks base method.

func (*MockAccountsService) Insert added in v0.17.0

func (m *MockAccountsService) Insert(ac *accounts.Account, serverTime int64) error

Insert mocks base method.

func (*MockAccountsService) Update added in v0.17.0

func (m *MockAccountsService) Update(ac *accounts.Account) error

Update mocks base method.

type MockAccountsServiceMockRecorder added in v0.17.0

type MockAccountsServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockAccountsServiceMockRecorder is the mock recorder for MockAccountsService.

func (*MockAccountsServiceMockRecorder) Delete added in v0.17.0

func (mr *MockAccountsServiceMockRecorder) Delete(accountID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockAccountsServiceMockRecorder) GetByID added in v0.17.0

func (mr *MockAccountsServiceMockRecorder) GetByID(accountID interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockAccountsServiceMockRecorder) Insert added in v0.17.0

func (mr *MockAccountsServiceMockRecorder) Insert(ac, serverTime interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockAccountsServiceMockRecorder) Update added in v0.17.0

func (mr *MockAccountsServiceMockRecorder) Update(ac interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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