WebGatewayUpload

command module
v0.0.0-...-bfb5dec Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Web Gateway upload

The following repository consists of the Peernet Web gateway upload implementation.

Features:

  • Upload file from Webpage
  • Upload file to Peernet from a single Curl request

Build

go build . 

Run

Run on default parameters (With Debug output)

./WebGatewayUpload

Run on Production mode

./WebGatewayUpload -Production

Custom Flags

./WebGatewayUpload -h 

Usage of ./WebGatewayUpload:
  -BackEndApiAddress string
    	current environment (default "localhost:8088")
  -Certificate string
    	SSL Certificate file (default "server.crt")
  -Key string
    	SSL Key file (default "server.key")
  -Production
    	Flag to check if required to run on production mode
  -SSL
    	Flag to check if the SSL certificate is enabled or not
  -WebpageAddress string
    	current environment (default "localhost:8098")

Routes

  • (GET) /upload (Opens upload page in the webgateway)

  • (POST) /upload (Uploads file to peernet from Webpage)

  • (POST) /uploadCurl (Uploads file from CURL)

    Ex:

    curl http://localhost:8088/uploadCurl -F add=@test.txt
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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