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
Click to show internal directories.
Click to hide internal directories.