grpc

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

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.

Jump to

Keyboard shortcuts

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