database

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(dbPath string) (*DB, error)

func (*DB) Close

func (db *DB) Close() error

func (*DB) DeleteFileMetadata

func (db *DB) DeleteFileMetadata(mappingID, objectName string) error

func (*DB) GetFileMetadata

func (db *DB) GetFileMetadata(mappingID, objectName string) (*FileMetadata, error)

func (*DB) ListFileMetadataByMapping

func (db *DB) ListFileMetadataByMapping(mappingID string) ([]*FileMetadata, error)

func (*DB) UpsertFileMetadata

func (db *DB) UpsertFileMetadata(metadata *FileMetadata) error

type FileMetadata

type FileMetadata struct {
	ID           int64
	MappingID    string
	ObjectName   string
	Size         int64
	LastModified time.Time
	ETag         string
	ContentType  string
	LastSynced   time.Time
	SyncStatus   string
}

Jump to

Keyboard shortcuts

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