uploads

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package uploads provides a file upload management interface for saving and reading files, with implementations for S3, GCS, and local filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RootUploadDirectory

type RootUploadDirectory string

RootUploadDirectory is a type alias for dependency injection's sake.

type UploadManager

type UploadManager interface {
	SaveFile(ctx context.Context, path string, content []byte) error
	ReadFile(ctx context.Context, path string) ([]byte, error)
}

UploadManager stores data in a given storage provider.

Directories

Path Synopsis
Package images is largely (and respectfully) inspired by/copied from this repo: github.com/olahol/go-imageupload
Package images is largely (and respectfully) inspired by/copied from this repo: github.com/olahol/go-imageupload

Jump to

Keyboard shortcuts

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