creamyvideos

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UploadResult

type UploadResult struct {
	ID  string
	URL string
}

UploadResult is the result of uploading a video

func Upload

func Upload(host, localPath, title, description string, tags []string) (*UploadResult, error)

Upload a local file to a creamy-videos server

func UploadWithProgress added in v0.0.3

func UploadWithProgress(host, localPath, title, description string, tags []string, callback func(current, total int64)) (*UploadResult, error)

UploadWithProgress uploads a local file to a creamy-videos server and provides progress updates

Jump to

Keyboard shortcuts

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