out

package
v1.31.0-beta.18 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package out is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountGRPCRepository

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

AccountGRPCRepository is a gRPC implementation of the account.proto

func NewAccountGRPC

func NewAccountGRPC(c *mgrpc.GRPCConnection) *AccountGRPCRepository

NewAccountGRPC returns a new instance of AccountGRPCRepository using the given gRPC connection.

func (*AccountGRPCRepository) GetAccountsByAlias

func (a *AccountGRPCRepository) GetAccountsByAlias(ctx context.Context, token string, organizationID, ledgerID uuid.UUID, aliases []string) (*proto.AccountsResponse, error)

GetAccountsByAlias returns a grpc accounts on ledger bi given aliases.

func (*AccountGRPCRepository) GetAccountsByIds

func (a *AccountGRPCRepository) GetAccountsByIds(ctx context.Context, token string, organizationID, ledgerID uuid.UUID, ids []string) (*proto.AccountsResponse, error)

GetAccountsByIds returns a grpc accounts on ledger bi given ids.

func (*AccountGRPCRepository) UpdateAccounts

func (a *AccountGRPCRepository) UpdateAccounts(ctx context.Context, token string, organizationID, ledgerID uuid.UUID, accounts []*proto.Account) (*proto.AccountsResponse, error)

UpdateAccounts update a grpc accounts on ledger.

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) EXPECT

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

func (*MockRepository) GetAccountsByAlias

func (m *MockRepository) GetAccountsByAlias(arg0 context.Context, arg1 string, arg2, arg3 uuid.UUID, arg4 []string) (*account.AccountsResponse, error)

GetAccountsByAlias mocks base method.

func (*MockRepository) GetAccountsByIds

func (m *MockRepository) GetAccountsByIds(arg0 context.Context, arg1 string, arg2, arg3 uuid.UUID, arg4 []string) (*account.AccountsResponse, error)

GetAccountsByIds mocks base method.

func (*MockRepository) UpdateAccounts

func (m *MockRepository) UpdateAccounts(arg0 context.Context, arg1 string, arg2, arg3 uuid.UUID, arg4 []*account.Account) (*account.AccountsResponse, error)

UpdateAccounts mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) GetAccountsByAlias

func (mr *MockRepositoryMockRecorder) GetAccountsByAlias(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

GetAccountsByAlias indicates an expected call of GetAccountsByAlias.

func (*MockRepositoryMockRecorder) GetAccountsByIds

func (mr *MockRepositoryMockRecorder) GetAccountsByIds(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

GetAccountsByIds indicates an expected call of GetAccountsByIds.

func (*MockRepositoryMockRecorder) UpdateAccounts

func (mr *MockRepositoryMockRecorder) UpdateAccounts(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

UpdateAccounts indicates an expected call of UpdateAccounts.

type Repository

type Repository interface {
	GetAccountsByIds(ctx context.Context, token string, organizationID, ledgerID uuid.UUID, ids []string) (*proto.AccountsResponse, error)
	GetAccountsByAlias(ctx context.Context, token string, organizationID, ledgerID uuid.UUID, aliases []string) (*proto.AccountsResponse, error)
	UpdateAccounts(ctx context.Context, token string, organizationID, ledgerID uuid.UUID, accounts []*proto.Account) (*proto.AccountsResponse, error)
}

Repository provides an interface for gRPC operations related to account in the Ledger.

Jump to

Keyboard shortcuts

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