app

package
v0.0.0-...-eb5064c Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App struct

func NewApp

func NewApp(
	appCtx interfaces.AppContext,
	logLevel logger.LogLevel,
) *App

NewApp creates a new App application struct

func (*App) Startup

func (a *App) Startup(ctx context.Context)

Startup is called when the app starts. The context is saved so we can call the runtime methods

type Ctx

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

func NewAppContext

func NewAppContext(afs afero.Fs) *Ctx

func (*Ctx) AddExportFile

func (a *Ctx) AddExportFile(file *common.ExportFileInfo)

AddExportFile adds a new export file to the context. It also adds all transaction ids from the file to the list of known transaction ids.

func (*Ctx) AllTxIDs

func (a *Ctx) AllTxIDs() []string

func (*Ctx) Context

func (a *Ctx) Context() context.Context

func (*Ctx) ExportFiles

func (a *Ctx) ExportFiles() []*common.ExportFileInfo

func (*Ctx) LastSelectedFileDir

func (a *Ctx) LastSelectedFileDir() string

func (*Ctx) SetContext

func (a *Ctx) SetContext(ctx context.Context)

func (*Ctx) SetLastSelectedFileDirFromFile

func (a *Ctx) SetLastSelectedFileDirFromFile(file string)

Jump to

Keyboard shortcuts

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