files

package
v0.0.0-...-8d2e23b Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileMeta

type FileMeta struct {
	SaveID   uuid.UUID `json:"uuid"`
	Filename string    `json:"filename"`
}

type Repository

type Repository struct {
	StoragePath string
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(db *sql.DB, storagePath string) Repository

func (Repository) GetFilesMeta

func (repo Repository) GetFilesMeta() ([]FileMeta, error)

func (Repository) WriteFileMeta

func (repo Repository) WriteFileMeta(saveid uuid.UUID, filename string) error

Jump to

Keyboard shortcuts

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