api

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateV1UploadHandler added in v1.2.0

func CreateV1UploadHandler(storeFile StoreFile) http.HandlerFunc

func StatusHandler added in v1.3.0

func StatusHandler(store files.Store) http.HandlerFunc

Types

type Metadata added in v1.2.0

type Metadata struct {
	Path          string  `schema:"path" validate:"required,aws-upload-key"`
	IsPublishable *bool   `schema:"isPublishable,omitempty" validate:"required"`
	CollectionId  *string `schema:"collectionId,omitempty"`
	Title         string  `schema:"title"`
	SizeInBytes   int     `schema:"resumableTotalSize" validate:"required"`
	Type          string  `schema:"resumableType" validate:"required"`
	Licence       string  `schema:"licence" validate:"required"`
	LicenceUrl    string  `schema:"licenceUrl" validate:"required"`
}

type StoreFile added in v1.2.0

type StoreFile func(ctx context.Context, uf filesAPI.FileMetaData, r files.Resumable, content []byte) (bool, error)

Jump to

Keyboard shortcuts

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