Help us shape the future of Go! Take the 2026 Go Developer Survey

importer

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: GPL-3.0 Imports: 8 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