Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

videosrv

A simple HTTP file server written in Go that serves files from a local directory and logs download progress with speed metrics.

Build

make build

Or install directly to /usr/local/bin:

make install

Test

Run the unit tests (with the race detector):

make test

Usage

videosrv <port> <path>
  • port — TCP port to listen on
  • path — directory to serve files from

Example:

videosrv 8080 /srv/videos

The server will be available at http://0.0.0.0:8080 and will serve all files under /srv/videos.

Downloading a file with curl

Once the server is running, download a file using curl:

curl -O http://<host>:<port>/<filename>

Example:

curl -O http://192.168.1.10:8080/movie.mp4

Update

Pull the latest version and reinstall:

./update.sh

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages