service

package
v0.0.0-...-c061cf9 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(log *zap.Logger, repository *repository.Repository, nec *nats.EncodedConn) *Service

func (*Service) CreateAccount

func (s *Service) CreateAccount(ctx context.Context, create account.Account) (account.Account, error)

func (*Service) CreateTransaction

func (s *Service) CreateTransaction(ctx context.Context, create transaction.Transaction) (transaction.Transaction, error)

func (*Service) GetAccount

func (s *Service) GetAccount(ctx context.Context, accountID string) (account.Account, error)

func (*Service) GetTransaction

func (s *Service) GetTransaction(ctx context.Context, transactionID string) (transaction.Transaction, error)

func (*Service) ListAccounts

func (s *Service) ListAccounts(ctx context.Context, cursor string, limit uint64) ([]account.Account, string, error)

func (*Service) ListTransactions

func (s *Service) ListTransactions(ctx context.Context, cursor string, limit uint64) ([]transaction.Transaction, string, error)

Jump to

Keyboard shortcuts

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