app

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProgressStats

func NewProgressStats() *models.ProgressStats

Types

type AppContext

type AppContext struct {
	DB            *sql.DB
	Tx            *sql.Tx
	Stmt          *sql.Stmt
	MetadataChan  chan models.FileMetadata
	Wg            *sync.WaitGroup
	Stats         *models.ProgressStats
	Context       context.Context
	Cancel        context.CancelFunc
	Cleanup       sync.Once
	LastCommit    time.Time
	ChannelClosed bool
}

func NewAppContext

func NewAppContext(parentCtx context.Context) *AppContext

func (*AppContext) PerformCleanup

func (app *AppContext) PerformCleanup()

Jump to

Keyboard shortcuts

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