httpserver

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package httpserver will contain the main httpserver functionality of goshs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileServer

type FileServer struct {
	IP             string
	Port           int
	CLI            bool
	WebdavPort     int
	Webroot        string
	SSL            bool
	SelfSigned     bool
	LetsEncrypt    bool
	MyKey          string
	MyCert         string
	User           string
	Pass           string
	DropUser       string
	Version        string
	Fingerprint256 string
	Fingerprint1   string
	UploadOnly     bool
	ReadOnly       bool
	Silent         bool
	Verbose        bool
	Hub            *ws.Hub
	Clipboard      *clipboard.Clipboard
}

FileServer holds the fileserver information

func (*FileServer) BasicAuthMiddleware

func (fs *FileServer) BasicAuthMiddleware(next http.Handler) http.Handler

BasicAuthMiddleware is a middleware to handle the basic auth

func (*FileServer) Start

func (fs *FileServer) Start(what string)

Start will start the file server

Jump to

Keyboard shortcuts

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