lib

package
v0.0.0-...-d44b873 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirList

func DirList(localfolder, webpath string) (err error)

Simple Directory Listing

func Generate_Token

func Generate_Token() string

func Handle_Cert

func Handle_Cert()

func MyIP

func MyIP() net.IP

MyIP returns the IP address of the machine, falling back to 127.0.0.1 if no other IP is found.

func MyName

func MyName() string

MyName tries to resolve a zeroconf local domain name and returns it, falling back to "localhost" if no other name is found.

func PrepareWorkingDir

func PrepareWorkingDir()

func UploaderEndpoint

func UploaderEndpoint(name, path, webpath, token string) http.HandlerFunc

UploaderEndpoint handles file uploading. It responds to GET requests with the file upload form, and to POST requests with the actual uploading.

Types

This section is empty.

Jump to

Keyboard shortcuts

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