media

package
v0.0.0-...-81d9568 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.Errorf("Resource not found")

Functions

func HandleUpload

func HandleUpload(ctx context.Context, exec boil.ContextExecutor, media MediaServer, userID string, reader io.Reader) (string, error)

Types

type MediaServer

type MediaServer interface {
	UploadFile(ctx context.Context, fname string, b []byte, contentType string) error
	ServeFile(ctx context.Context, fname string) (io.Reader, int64, string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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