gophi/config.go
kim (grufwub) 41d6f279fc replace logging system + add support for log options + toggleable output
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-02 22:34:49 +01:00

28 lines
555 B
Go

package main
import (
"regexp"
)
/* ServerConfig:
* Holds onto global server configuration details
* and any data objects we want to keep in memory
* (e.g. loggers, restricted files regular expressions
* and file cache)
*/
type ServerConfig struct {
/* Base settings */
/* Content settings */
FooterText []byte
PageWidth int
RestrictedFiles []*regexp.Regexp
/* Logging */
SysLog LoggerInterface
AccLog LoggerInterface
/* Filesystem access */
FileSystem *FileSystem
}