Documentation
¶
Index ¶
- Variables
- func CreateChannel() (chan os.Signal, func())
- func GetServerAddress() string
- func GracefulStart() error
- func ServeFileServer(response http.ResponseWriter, request *http.Request)
- func SetServerAddress(address string)
- func Shutdown(serverContext context.Context) error
- func Start() error
- type FileSystem
- type NeuteredStatFile
Constants ¶
This section is empty.
Variables ¶
View Source
var FrontendPath = "./frontend" // should be set doing runtime by main.go
View Source
var Server = http.Server{ Addr: "", Handler: nil, TLSConfig: nil, ReadTimeout: 5 * time.Second, ReadHeaderTimeout: 20 * time.Second, WriteTimeout: 10 * time.Second, IdleTimeout: 0, MaxHeaderBytes: 0, TLSNextProto: nil, ConnState: nil, ErrorLog: nil, BaseContext: nil, ConnContext: nil, }
View Source
var ServerGraceShutdownTime = 5 * time.Second
Functions ¶
func CreateChannel ¶
func GetServerAddress ¶
func GetServerAddress() string
func GracefulStart ¶
func GracefulStart() error
func ServeFileServer ¶
func ServeFileServer(response http.ResponseWriter, request *http.Request)
func SetServerAddress ¶
func SetServerAddress(address string)
Types ¶
type FileSystem ¶
type FileSystem struct { FileSystem http.FileSystem ReadDirBatchSize int // configuration parameter for `Readdir` func }
type NeuteredStatFile ¶
Click to show internal directories.
Click to hide internal directories.