Documentation ¶
Index ¶
- type AccountGRPCRepository
- func (a *AccountGRPCRepository) GetAccountsByAlias(ctx context.Context, aliases []string) (*proto.AccountsResponse, error)
- func (a *AccountGRPCRepository) GetAccountsByIds(ctx context.Context, ids []string) (*proto.AccountsResponse, error)
- func (a *AccountGRPCRepository) UpdateAccounts(ctx context.Context, accounts []*proto.Account) (*proto.AccountsResponse, error)
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, 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, 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, accounts []*proto.Account) (*proto.AccountsResponse, error)
UpdateAccounts update a grpc accounts on ledger.
Click to show internal directories.
Click to hide internal directories.