server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const ContentDirectory = "data/uploads"
View Source
const MaxBytesPerFile = 100000000

Variables

This section is empty.

Functions

func CopyMax added in v1.1.0

func CopyMax(dst io.Writer, src io.Reader, maxBytes int64) (n int64, err error)

CopyMax copies only the maxBytes and then returns an error if it copies equal to or greater than maxBytes (meaning that it did not complete the copy).

func Run

func Run(port int, sname string) (err error)

Types

type FileData

type FileData struct {
	Prefix string
	Start  float64
	Stop   float64
}

type Href

type Href struct {
	Value string
	Href  string
	Flag  bool
}

type Metadata

type Metadata struct {
	Name         string
	UUID         string
	OriginalURL  string
	Files        []FileData
	Start        float64
	Stop         float64
	IsSynthPatch bool
}

type Render

type Render struct {
	Title        string
	MessageError string
	MessageInfo  string
	Metadata     Metadata
}

Jump to

Keyboard shortcuts

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