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()
Click to show internal directories.
Click to hide internal directories.