Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Certificate ¶
type Certificate struct { RootPrivateKeyFilePath string `yaml:"rootPrivateKey"` RootCertificateFilePath string `yaml:"rootPath"` PrivateKeyFilePath string `yaml:"privateKey"` CertificateFilePath string `yaml:"path"` CertificateHosts string `yaml:"hosts"` CertificateValidDuration time.Duration `yaml:"duration"` ForceOverwrite bool `yaml:"-"` }
Certificate holds the certificate/private key configuration for HTTPS.
type Config ¶
type Config struct { Verbose bool `yaml:"verbose"` Serve []Serve `yaml:"serve"` ConfigurationFile string `yaml:"-"` EnhancedList bool `yaml:"enhancedList"` Debug bool `yaml:"debug"` HTTP HTTP `yaml:"http"` HTTPS HTTPS `yaml:"https"` Monitoring Monitoring `yaml:"monitoring"` Upload Serve `yaml:"upload"` }
Config is the root of the server configuration.
type CustomIndexReport ¶
type DirEntry ¶
type EntryList ¶ added in v2.6.0
type FileSystem ¶
type HTTP ¶
type HTTP struct {
Port int `yaml:"port"`
}
HTTP holds the configuration for HTTP serving.
type HTTPS ¶
type HTTPS struct { Port int `yaml:"port"` Certificate Certificate `yaml:"certificate"` }
HTTPS holds the configuration for HTTPS serving.
type Monitoring ¶
type Monitoring struct { DebugEndpoint string `yaml:"debugEndpoint"` Metrics Metrics `yaml:"metrics"` Trace Trace `yaml:"trace"` }
Monitoring holds the monitoring configuration.
type Serve ¶
type Serve struct { // Source location to serve. Source string `yaml:"source"` // Endpoint on the HTTP server to serve the content. Endpoint string `yaml:"endpoint"` }
Serve maps the source to endpoint serving of content.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.