Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StaticOptions ¶
type StaticOptions struct { // Prefix is the optional prefix used to serve the static directory content Prefix string // Indexfile is teh name of the index file that should be served if it exists IndexFile string // SkipLogging will disable [Static] log messages when a static file is served SkipLogging bool // Expires defines which user-defined function to use for producing a HTTP Expires Header // https://developers.google.com/speed/docs/insights/LeverageBrowserCaching Expires func() string }
StaticOptions is a struct for specifiying configuration options for the goji-static middleware.
Click to show internal directories.
Click to hide internal directories.