transactions

package
v0.0.0-...-1caa4a4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataProvider

type DataProvider struct {
	// contains filtered or unexported fields
}

DataProvider implements ext.TableDataProvider and ext.FromDataProvider for interaction with transactions.

func NewDataProvider

func NewDataProvider(service *service.Service, presenter *presenter.Presenter) *DataProvider

NewDataProvider returns new DataProvider.

func (*DataProvider) GetAll

func (d *DataProvider) GetAll() []map[string]string

GetAll returns slice of maps which represents transaction struct.

func (*DataProvider) GetDropDownOptions

func (d *DataProvider) GetDropDownOptions(label string) []string

GetDropDownOptions returns dropdown obtions for given label.

type View

type View struct {
	*tview.Pages
	// contains filtered or unexported fields
}

View is a transactions view.

func New

func New(service *service.Service, presenter *presenter.Presenter) *View

New returns new transactions view.

func (*View) InputHandler

func (v *View) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

InputHandler returns the handler for this primitive.

func (*View) ModalHasFocus

func (v *View) ModalHasFocus() bool

ModalHasFocus returns true if any of modal is currently on focus.

Jump to

Keyboard shortcuts

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