Documentation ¶
Index ¶
- Constants
- func AddAccount(ctx telebot.Context) error
- func Callback(ctx telebot.Context) error
- func Help(ctx telebot.Context) error
- func ListAccounts(ctx telebot.Context) error
- func ListExpenses(ctx telebot.Context) error
- func ListTransactionSubcategories(ctx telebot.Context) error
- func ListTransactions(ctx telebot.Context) error
- func ListUsers(ctx telebot.Context) error
- func New(ctx telebot.Context) error
- func NewTransaction(ctx telebot.Context) error
- func NewUser(ctx telebot.Context) error
- func StartTrackingExpenses(ctx telebot.Context) error
- func SyncSQLiteDatabase(ctx telebot.Context) error
- func TransactionCategoryCallback(ctx telebot.Context) error
- func TransactionReportCallback(ctx telebot.Context) error
- func TransactionSummary(ctx telebot.Context) error
- func TransactionSummaryCallback(ctx telebot.Context) error
- func TransactionTextCallback(ctx telebot.Context) error
- func Welcome(ctx telebot.Context) error
- type AccountCallbackOptions
- type CallbackOptions
- type CallbackType
- type NextStep
- type ReportCallbackOptions
- type SummaryCallbackOptions
- type SummaryDuration
- type SummaryGroupBy
- type TransactionCallbackOptions
- type TransactionOptions
- type TxnCategoryCallbackOptions
- type UserCallbackOptions
Constants ¶
View Source
const ( TxnCategoryTypeCallback CallbackType = "txn-category" TxnSubcategoryTypeCallback CallbackType = "txn-subcategory" TransactionTypeCallback CallbackType = "Transaction" TransactionFlagTypeCallback CallbackType = "Transaction with flags" SummaryTypeCallback CallbackType = "Summary" ReportTypeCallback CallbackType = "Report" AccountTypeCallback CallbackType = "Account" UserTypeCallback CallbackType = "DebtorsCreditors" StepTxnType NextStep = "txn-type" StepAmount NextStep = "txn-amount" StepSrcID NextStep = "txn-srcid" StepDstID NextStep = "txn-dstid" StepCategory NextStep = "txn-cat" StepSubcategory NextStep = "txn-subcat" StepUser NextStep = "txn-user" StepRemarks NextStep = "txn-remarks" StepDone NextStep = "txn-done" )
View Source
const ( StepGroupBy NextStep = "group-by" StepDuration NextStep = "duration" GroupByTxnType SummaryGroupBy = "Transaction Type" GroupByTxnCategory SummaryGroupBy = "Category" GroupByTxnSubCategory SummaryGroupBy = "Subcategory" DurationOneWeek SummaryDuration = "1 Week" DurationThisMonth SummaryDuration = "This Month" DurationOneMonth SummaryDuration = "One Month" DurationHalfYear SummaryDuration = "Last 6 Months" DurationThisYear SummaryDuration = "This Year" DurationOneYear SummaryDuration = "One Year" )
Variables ¶
This section is empty.
Functions ¶
func AddAccount ¶
func AddAccount(ctx telebot.Context) error
func ListAccounts ¶
func ListAccounts(ctx telebot.Context) error
func ListExpenses ¶
func ListExpenses(ctx telebot.Context) error
func ListTransactionSubcategories ¶
func ListTransactionSubcategories(ctx telebot.Context) error
func ListTransactions ¶
func ListTransactions(ctx telebot.Context) error
func NewTransaction ¶
func NewTransaction(ctx telebot.Context) error
func StartTrackingExpenses ¶ added in v1.0.1
func StartTrackingExpenses(ctx telebot.Context) error
func SyncSQLiteDatabase ¶ added in v0.2.0
func SyncSQLiteDatabase(ctx telebot.Context) error
func TransactionCategoryCallback ¶
func TransactionCategoryCallback(ctx telebot.Context) error
func TransactionReportCallback ¶
func TransactionReportCallback(ctx telebot.Context) error
func TransactionSummary ¶
func TransactionSummary(ctx telebot.Context) error
func TransactionSummaryCallback ¶
func TransactionSummaryCallback(ctx telebot.Context) error
func TransactionTextCallback ¶
func TransactionTextCallback(ctx telebot.Context) error
Types ¶
type AccountCallbackOptions ¶
type AccountCallbackOptions struct { NextStep NextStep `json:"nextStep"` Type models.AccountType `json:"type"` ShortName string `json:"shortName"` Name string `json:"name"` }
type CallbackOptions ¶
type CallbackOptions struct { Type CallbackType `json:"type"` Transaction TransactionCallbackOptions `json:"transaction,omitempty"` Summary SummaryCallbackOptions `json:"summary,omitempty"` Report ReportCallbackOptions `json:"report,omitempty"` Account AccountCallbackOptions `json:"account,omitempty"` User UserCallbackOptions `json:"user,omitempty"` Category TxnCategoryCallbackOptions `json:"category,omitempty"` LastSelectedValue string }
type CallbackType ¶
type CallbackType string
type ReportCallbackOptions ¶
type ReportCallbackOptions struct {
Duration SummaryDuration `json:"duration"`
}
type SummaryCallbackOptions ¶
type SummaryCallbackOptions struct { NextStep NextStep `json:"nextStep"` GroupBy SummaryGroupBy `json:"groupBy,omitempty"` Duration SummaryDuration `json:"duration,omitempty"` }
type SummaryDuration ¶
type SummaryDuration string
type SummaryGroupBy ¶
type SummaryGroupBy string
type TransactionCallbackOptions ¶
type TransactionCallbackOptions struct { NextStep NextStep `json:"nextStep"` Type models.TransactionType `json:"type"` Amount float64 `json:"amount,omitempty"` SrcID string `json:"srcID,omitempty"` DstID string `json:"dstID,omitempty"` CategoryID string `json:"catID,omitempty"` SubcategoryID string `json:"subcatID,omitempty"` DebtorCreditorName string `json:"userID,omitempty"` Remarks string `json:"remarks,omitempty"` }
type TransactionOptions ¶
type UserCallbackOptions ¶
Click to show internal directories.
Click to hide internal directories.