Documentation ¶
Index ¶
- Constants
- type AccountsService
- func (s *AccountsService) Account(ctx context.Context, tenant *model.Tenant, accountID string) (*model.Account, error)
- func (s *AccountsService) Accounts(ctx context.Context, tenant *model.Tenant) ([]*model.Account, error)
- func (s *AccountsService) ChildCount(ctx context.Context, obj *model.Account) (int, error)
- func (s *AccountsService) Children(ctx context.Context, obj *model.Account) ([]*model.Account, error)
- func (s *AccountsService) CreateAccount(ctx context.Context, tenantID string, accountID *string, ...) (*model.Account, error)
- func (s *AccountsService) DeleteAccount(ctx context.Context, tenantID, accountID string) (string, error)
- func (s *AccountsService) IncomingTransactions(ctx context.Context, obj *model.Account) ([]*model.Transaction, error)
- func (s *AccountsService) Labels(ctx context.Context, obj *model.Account) ([]*model.KeyAndValue, error)
- func (s *AccountsService) OutgoingTransactions(ctx context.Context, obj *model.Account) ([]*model.Transaction, error)
- func (s *AccountsService) Parent(ctx context.Context, obj *model.Account) (*model.Account, error)
- func (s *AccountsService) UpdateAccount(ctx context.Context, tenantID, accountID string, account model.AccountChanges) (*model.Account, error)
- type OperationsService
- type Service
- type TenantsService
- func (s *TenantsService) CreateTenant(ctx context.Context, tenantID *string, tenant model.TenantChanges) (*model.Tenant, error)
- func (s *TenantsService) DeleteTenant(ctx context.Context, tenantID string) (string, error)
- func (s *TenantsService) Tenant(ctx context.Context, id string) (*model.Tenant, error)
- func (s *TenantsService) Tenants(ctx context.Context) ([]*model.Tenant, error)
- func (s *TenantsService) UpdateTenant(ctx context.Context, tenantID string, tenant model.TenantChanges) (*model.Tenant, error)
- type TransactionsService
- func (s *TransactionsService) CreateTransaction(ctx context.Context, tenantID string, transaction model.TransactionChanges) (*model.Transaction, error)
- func (s *TransactionsService) CreateTransactions(ctx context.Context, tenantID string, transactions []*model.TransactionChanges) (int, error)
- func (s *TransactionsService) ScrapeIsraelBankYahav(ctx context.Context, tenantID, username, id, password string) (string, error)
- func (s *TransactionsService) Transactions(ctx context.Context, tenant *model.Tenant) ([]*model.Transaction, error)
Constants ¶
View Source
const GlobalTenantID = "global"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsService ¶
type AccountsService struct {
Service
}
func (*AccountsService) ChildCount ¶
func (*AccountsService) CreateAccount ¶
func (s *AccountsService) CreateAccount(ctx context.Context, tenantID string, accountID *string, account model.AccountChanges) (*model.Account, error)
func (*AccountsService) DeleteAccount ¶
func (*AccountsService) IncomingTransactions ¶
func (s *AccountsService) IncomingTransactions(ctx context.Context, obj *model.Account) ([]*model.Transaction, error)
func (*AccountsService) Labels ¶
func (s *AccountsService) Labels(ctx context.Context, obj *model.Account) ([]*model.KeyAndValue, error)
func (*AccountsService) OutgoingTransactions ¶
func (s *AccountsService) OutgoingTransactions(ctx context.Context, obj *model.Account) ([]*model.Transaction, error)
func (*AccountsService) UpdateAccount ¶
func (s *AccountsService) UpdateAccount(ctx context.Context, tenantID, accountID string, account model.AccountChanges) (*model.Account, error)
type OperationsService ¶
type OperationsService struct {
Service
}
func (*OperationsService) UpdateOperation ¶
func (s *OperationsService) UpdateOperation(ctx context.Context, id string, op model.OperationChanges) (*model.Operation, error)
type Service ¶
type Service struct { Descope *descope.DescopeClient Neo4j neo4j.DriverWithContext Redis rueidis.Client }
type TenantsService ¶
type TenantsService struct {
Service
}
func (*TenantsService) CreateTenant ¶
func (s *TenantsService) CreateTenant(ctx context.Context, tenantID *string, tenant model.TenantChanges) (*model.Tenant, error)
func (*TenantsService) DeleteTenant ¶
func (*TenantsService) UpdateTenant ¶
func (s *TenantsService) UpdateTenant(ctx context.Context, tenantID string, tenant model.TenantChanges) (*model.Tenant, error)
type TransactionsService ¶
type TransactionsService struct {
Service
}
func (*TransactionsService) CreateTransaction ¶
func (s *TransactionsService) CreateTransaction(ctx context.Context, tenantID string, transaction model.TransactionChanges) (*model.Transaction, error)
func (*TransactionsService) CreateTransactions ¶
func (s *TransactionsService) CreateTransactions(ctx context.Context, tenantID string, transactions []*model.TransactionChanges) (int, error)
func (*TransactionsService) ScrapeIsraelBankYahav ¶
func (*TransactionsService) Transactions ¶
func (s *TransactionsService) Transactions(ctx context.Context, tenant *model.Tenant) ([]*model.Transaction, error)
Click to show internal directories.
Click to hide internal directories.