services

package
v0.0.0-...-ec25b82 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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) Account

func (s *AccountsService) Account(ctx context.Context, tenant *model.Tenant, accountID string) (*model.Account, error)

func (*AccountsService) Accounts

func (s *AccountsService) Accounts(ctx context.Context, tenant *model.Tenant) ([]*model.Account, error)

func (*AccountsService) ChildCount

func (s *AccountsService) ChildCount(ctx context.Context, obj *model.Account) (int, error)

func (*AccountsService) Children

func (s *AccountsService) Children(ctx context.Context, obj *model.Account) ([]*model.Account, error)

func (*AccountsService) CreateAccount

func (s *AccountsService) CreateAccount(ctx context.Context, tenantID string, accountID *string, account model.AccountChanges) (*model.Account, error)

func (*AccountsService) DeleteAccount

func (s *AccountsService) DeleteAccount(ctx context.Context, tenantID, accountID string) (string, error)

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) Parent

func (s *AccountsService) Parent(ctx context.Context, obj *model.Account) (*model.Account, 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) Operation

func (s *OperationsService) Operation(ctx context.Context, id string) (*model.Operation, error)

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 (s *TenantsService) DeleteTenant(ctx context.Context, tenantID string) (string, error)

func (*TenantsService) Tenant

func (s *TenantsService) Tenant(ctx context.Context, id string) (*model.Tenant, error)

func (*TenantsService) Tenants

func (s *TenantsService) Tenants(ctx context.Context) ([]*model.Tenant, error)

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 (s *TransactionsService) ScrapeIsraelBankYahav(ctx context.Context, tenantID, username, id, password string) (string, error)

func (*TransactionsService) Transactions

func (s *TransactionsService) Transactions(ctx context.Context, tenant *model.Tenant) ([]*model.Transaction, error)

Jump to

Keyboard shortcuts

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