balances

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Unlicense Imports: 11 Imported by: 0

Documentation

Overview

Package balances is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountBalance

type AccountBalance struct {
	AccountID      uuid.UUID
	CurrentBalance float64
}

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) GetByAccountID

func (m *MockService) GetByAccountID(ctx context.Context, accountID uuid.UUID) (AccountBalance, error)

GetByAccountID mocks base method.

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) GetByAccountID

func (mr *MockServiceMockRecorder) GetByAccountID(ctx, accountID interface{}) *gomock.Call

GetByAccountID indicates an expected call of GetByAccountID.

type Repository

type Repository interface {
	GetByAccountID(ctx context.Context, accountID uuid.UUID) (accountBalanceModel, error)
}

func NewRepository

func NewRepository(t tracer.Tracer, db database.Database) Repository

type Service

type Service interface {
	GetByAccountID(ctx context.Context, accountID uuid.UUID) (AccountBalance, error)
}

func NewService

func NewService(t tracer.Tracer, r Repository) Service

Jump to

Keyboard shortcuts

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