server

package
v0.0.0-...-851fecb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFilePath

func GenerateFilePath(extension string) string

GenerateFilePath generates a random file path for return

Types

type ContentTypeExtension

type ContentTypeExtension struct {
	Extension   string
	ContentType string
}

ContentTypeExtension struct holds a single content type and extension

type File

type File struct {
	Extension    string
	ContentType  string
	FileLocation string
}

File simply holds a content type extension object

func GenerateFile

func GenerateFile(seed int64) File

GenerateFile simply generates content-types and extensions

Jump to

Keyboard shortcuts

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