shareit

package module
v0.0.0-...-c11ca93 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 24 Imported by: 0

README

Build Status

ShareMinator

Share your files with your friends

Workish

  • Browsing
  • Removing files
  • Creating folder
  • Popup for downloading file
  • Authentication system (Partial)
  • Add User Creation
  • Add upload system (Broken for now)
  • Add sharing system (Partial)

TODO

  • Add Chromecast support for Videos and Music
  • Add real database for storing informations

The website frontend is now in a separate package git@github.com:scritch007/ShareMinatorFrontend.git

Please edit the configuration file to point to this repository

Create a configuration file using the file provided in the examples folder.

then run the following command

   ShareMinator -c=/PATH_TO_YOUR_CONFIGURATION_FOLDER/config.json

GoDoc

Credits

Documentation

Overview

shareit package aims at browsing files and sharing them with others

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfiguration

func NewConfiguration(configFile string, r *echo.Echo) (resultConfig *types.Configuration)

Types

type CommandHandler

type CommandHandler struct {
	UploadChunkSize int64 `json:"upload_chunk_size"`
	// contains filtered or unexported fields
}

ServeContent(w ResponseWriter, req *Request, name string, modtime time.Time, content io.ReadSeeker) CommandHandler is used to keep information about issued commands

func NewCommandHandler

func NewCommandHandler(config *types.Configuration) (c *CommandHandler)

CommandHandler constructor

func (*CommandHandler) Command

func (c *CommandHandler) Command(w http.ResponseWriter, r *http.Request)

func (*CommandHandler) Commands

func (c *CommandHandler) Commands(w http.ResponseWriter, r *http.Request)

Handle Request on /commands Only GET and POST request are available

func (*CommandHandler) Download

func (c *CommandHandler) Download(ctx echo.Context) error

Download serve file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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