Documentation
¶
Overview ¶
Package config provides the necessary configurations for gofileserver.
The configurations can be retrieved from command line flags if needed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // BaseDir to serve. BaseDir string // Addr to listen. Addr string // HTTPS flag to enable HTTPS using SSLCertFile and SSLKeyFile. HTTPS bool // SSLCertFile refers to the location of SSL certificate. SSLCertFile string // SSLKeyFile refers to the location of SSL key. SSLKeyFile string // AllowCORS flag to allow requests from all origin. AllowCors bool }
Config for the fileserver.
Click to show internal directories.
Click to hide internal directories.