_common

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PsqlMatrixDownloadCopy

func PsqlMatrixDownloadCopy[M homeserver_interop.ImportDbMedia](ctx rcontext.RequestContext, cfg *ImportOptsPsqlFlatFile, db homeserver_interop.ImportDb[M], extractFn func(record *M) (*MediaMetadata, error))

Types

type ImportOptsPsqlFlatFile

type ImportOptsPsqlFlatFile struct {
	ServerName       string
	ApiUrl           string
	NumWorkers       int
	ConnectionString string
}

func InitImportPsqlMatrixDownload

func InitImportPsqlMatrixDownload(softwareName string) *ImportOptsPsqlFlatFile

type MediaMetadata

type MediaMetadata struct {
	MediaId        string
	ContentType    string
	FileName       string
	UploaderUserId string
	SizeBytes      int64
}

Jump to

Keyboard shortcuts

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