storage

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSqlite

func NewSqlite(dbPath string) (*sqliteStorage, error)

Should be closed after being used

Types

type ModifiedUpdater

type ModifiedUpdater interface {
	UpdateModified(ctx context.Context) error
}

type Storage

type Storage interface {
	io.Closer
	InsertPath(ctx context.Context, path string, updatedAt time.Time) (*time.Time, error)
	UpdateAccess(ctx context.Context, path string) error
	UpdateModified(ctx context.Context, path string) error
}

Jump to

Keyboard shortcuts

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