Documentation ¶
Overview ¶
Package httpserver will contain the main httpserver functionality of goshs
Index ¶
- type FileServer
- func (files *FileServer) AddCertAuth(server *http.Server)
- func (fs *FileServer) BasicAuthMiddleware(next http.Handler) http.Handler
- func (files *FileServer) PrintEmbeddedFiles()
- func (fs *FileServer) PrintInfoUseBasicAuth(mux *mux.Router, what string)
- func (fs *FileServer) SetupMux(mux *mux.Router, what string) string
- func (fs *FileServer) Start(what string)
- func (fs *FileServer) StartListener(server http.Server, what string, listener net.Listener)
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 MyP12 string User string Pass string CACert string DropUser string Version string Fingerprint256 string Fingerprint1 string UploadOnly bool ReadOnly bool Silent bool Embedded bool Verbose bool Hub *ws.Hub Clipboard *clipboard.Clipboard }
FileServer holds the fileserver information
func (*FileServer) AddCertAuth ¶ added in v0.4.1
func (files *FileServer) AddCertAuth(server *http.Server)
func (*FileServer) BasicAuthMiddleware ¶
func (fs *FileServer) BasicAuthMiddleware(next http.Handler) http.Handler
BasicAuthMiddleware is a middleware to handle the basic auth
func (*FileServer) PrintEmbeddedFiles ¶ added in v0.3.9
func (files *FileServer) PrintEmbeddedFiles()
func (*FileServer) PrintInfoUseBasicAuth ¶ added in v0.4.2
func (fs *FileServer) PrintInfoUseBasicAuth(mux *mux.Router, what string)
func (*FileServer) SetupMux ¶ added in v0.4.2
func (fs *FileServer) SetupMux(mux *mux.Router, what string) string
func (*FileServer) Start ¶
func (fs *FileServer) Start(what string)
Start will start the file server
func (*FileServer) StartListener ¶ added in v0.4.2
Click to show internal directories.
Click to hide internal directories.