Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate_Token ¶
func Generate_Token() string
func Handle_Cert ¶
func Handle_Cert()
func MyIP ¶
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.
Click to show internal directories.
Click to hide internal directories.