Documentation
¶
Index ¶
- type MapperSvc
- type Service
- func (s *Service) Create(ctx context.Context, req *accountsv1.CreateAccountRequest) (*accountsv1.CreateAccountResponse, error)
- func (s *Service) CreateBulk(ctx context.Context, req *accountsv1.CreateAccountsBulkRequest) (*accountsv1.CreateAccountsBulkResponse, error)
- func (s *Service) Delete(ctx context.Context, req *accountsv1.DeleteAccountRequest) (*accountsv1.DeleteAccountResponse, error)
- func (s *Service) EnsureDefaultAccountsExist(ctx context.Context) error
- func (s *Service) EnsureDefaultExists(_ context.Context, tx *gorm.DB, updatedAcc *database.Account) error
- func (s *Service) GetAccountByID(ctx context.Context, id int32) (*database.Account, error)
- func (s *Service) GetAllAccounts(ctx context.Context) ([]*database.Account, error)
- func (s *Service) GetDefaultAccount(ctx context.Context, accountType gomoneypbv1.AccountType) (*database.Account, error)
- func (s *Service) List(ctx context.Context, req *accountsv1.ListAccountsRequest) (*accountsv1.ListAccountsResponse, error)
- func (s *Service) Update(ctx context.Context, req *accountsv1.UpdateAccountRequest) (*accountsv1.UpdateAccountResponse, error)
- type ServiceConfig
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( cfg *ServiceConfig, ) *Service
func (*Service) Create ¶
func (s *Service) Create( ctx context.Context, req *accountsv1.CreateAccountRequest, ) (*accountsv1.CreateAccountResponse, error)
func (*Service) CreateBulk ¶
func (s *Service) CreateBulk( ctx context.Context, req *accountsv1.CreateAccountsBulkRequest, ) (*accountsv1.CreateAccountsBulkResponse, error)
func (*Service) Delete ¶
func (s *Service) Delete(ctx context.Context, req *accountsv1.DeleteAccountRequest) (*accountsv1.DeleteAccountResponse, error)
func (*Service) EnsureDefaultAccountsExist ¶ added in v0.2.0
func (*Service) EnsureDefaultExists ¶ added in v0.2.0
func (*Service) GetAccountByID ¶
func (*Service) GetAllAccounts ¶
func (*Service) GetDefaultAccount ¶ added in v0.2.0
func (s *Service) GetDefaultAccount(ctx context.Context, accountType gomoneypbv1.AccountType) (*database.Account, error)
func (*Service) List ¶
func (s *Service) List(ctx context.Context, req *accountsv1.ListAccountsRequest) (*accountsv1.ListAccountsResponse, error)
func (*Service) Update ¶
func (s *Service) Update( ctx context.Context, req *accountsv1.UpdateAccountRequest, ) (*accountsv1.UpdateAccountResponse, error)
type ServiceConfig ¶
Click to show internal directories.
Click to hide internal directories.