sync

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 GetLastProcessedDate() time.Time

func GetMappableAccounts added in v0.2.5

func GetMappableAccounts(accounts []*toshl.Account) map[string]*toshl.Account

func Run

func Run(ctx context.Context, auth types.Auth) error

func SendNotifications added in v0.2.1

func SendNotifications(auth types.Auth, msg string)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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