Documentation ¶
Index ¶
- Constants
- func ArchiveEmailsFromSuccessfulTransactions(mailClient imap.MailClient, archiveMailbox string, ...)
- func CreateEntries(toshlClient toshl.ApiClient, transactions []*types.TransactionInfo, ...) ([]*types.TransactionInfo, []*types.TransactionInfo)
- func CreateInternalCategoryIfAbsent(toshlClient toshl.ApiClient, TxType types.TransactionType) string
- func ExtractTransactionInfoFromMessages(msgs []types.BankMessage) ([]*types.TransactionInfo, int64)
- func GetEmailFromInbox(mailClient imap.MailClient, banks []synctypes.BankDelegate) ([]synctypes.BankMessage, error)
- func GetLastProcessedDate() time.Time
- func GetMappableAccounts(accounts []*toshl.Account) map[string]*toshl.Account
- func Run(ctx context.Context, auth types.Auth) error
- func SendNotifications(auth types.Auth, msg string)
- func SetTimezoneLocale(location string)
- func UpdateLastProcessedDate(failedTxs []*synctypes.TransactionInfo) error
Constants ¶
View Source
const OverrideLasProcessedDateEnvName = "OVERRIDE_LAST_PROC_DATE"
Variables ¶
This section is empty.
Functions ¶
func ArchiveEmailsFromSuccessfulTransactions ¶ added in v1.0.0
func ArchiveEmailsFromSuccessfulTransactions(mailClient imap.MailClient, archiveMailbox string, successfulTransactions []*synctypes.TransactionInfo)
func CreateEntries ¶
func CreateEntries(toshlClient toshl.ApiClient, transactions []*types.TransactionInfo, mappableAccounts map[string]*toshl.Account, internalCategoryIds map[types.TransactionType]string) ([]*types.TransactionInfo, []*types.TransactionInfo)
func CreateInternalCategoryIfAbsent ¶ added in v0.2.5
func CreateInternalCategoryIfAbsent(toshlClient toshl.ApiClient, TxType types.TransactionType) string
func ExtractTransactionInfoFromMessages ¶
func ExtractTransactionInfoFromMessages(msgs []types.BankMessage) ([]*types.TransactionInfo, int64)
func GetEmailFromInbox ¶ added in v0.2.5
func GetEmailFromInbox(mailClient imap.MailClient, banks []synctypes.BankDelegate) ([]synctypes.BankMessage, error)
func GetLastProcessedDate ¶
func GetMappableAccounts ¶ added in v0.2.5
func SendNotifications ¶ added in v0.2.1
func SetTimezoneLocale ¶ added in v1.0.0
func SetTimezoneLocale(location string)
TODO: obtain this from DynamoDB and set a default value
func UpdateLastProcessedDate ¶
func UpdateLastProcessedDate(failedTxs []*synctypes.TransactionInfo) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.