importer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportArchive

func ImportArchive(
	ctx context.Context,
	db *sql.DB,
	q *dbq.Queries,
	bs blobstore.Store,
	opts ImportOptions,
) (pageID, fileID, versionID int64, sha string, size int64, err error)

Types

type ImportOptions

type ImportOptions struct {
	GameInstallID int64
	ArchivePath   string

	NexusURL        *string // optional nexus link
	NexusGameDomain *string
	NexusModID      *int64

	PageID    *int64  // optional attach to existing mod_page
	ModName   *string // optional override for mod_pages.name
	FileLabel *string // optional override for mod_files.label

	Wrapped     bool
	WrappedFrom string
	MemberName  string

	// what to store into blobs.original_name / mod_file_versions.original_name
	OriginalBasename string
}

Jump to

Keyboard shortcuts

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