Skip to content

kolmoblocks/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

Kolmoserver is the backend for the kolmoblocks demo webapp.

Kolmoupload is a script that uploads a file or directory to the redis db that kolmoserver is connected to.

Features

  • The webapp currently supports:

    • Upload (endpoint: /upload): single/multiple files. The manifest is autogenerated and contains the MIME type and size. The manifest and bytes of the file are then stored as a hash on redis.

    • Search (endpoint: /search): Searches for the hash in the redis db matching the given query parameter 'cid' and returns the manifest of that cid in the form of json.

    • Serving a raw file (endpoint: /raw/{ref}): Searches for the hash in the redis db matching the given ref and returns the bytes with http header content-type set to its MIME type.

  • Kolmoupload supports the command line flag -upload and and takes in a file/directory path

Installation

Compile with:

go install 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published