Documentation ¶
Index ¶
- Constants
- func FavIconHandler(handlerData HandlerData, w http.ResponseWriter, r *http.Request)
- func IndexPageHandler(handlerData HandlerData, w http.ResponseWriter, r *http.Request)
- func LogError(err error) bool
- func NotFoundHandler(handlerData HandlerData, w http.ResponseWriter, r *http.Request)
- func PrevievFileHandler(handlerData HandlerData, w http.ResponseWriter, r *http.Request)
- func RawFileHandler(handlerData HandlerData, w http.ResponseWriter, r *http.Request)
- type HandlerData
Constants ¶
View Source
const ( NotFoundFile = "404.html" IndexFile = "index.html" PreviewFile = "Preview.html" FavIconFile = "favicon.ico" ContentFile = "Content.html" )
Static files
Variables ¶
This section is empty.
Functions ¶
func FavIconHandler ¶
func FavIconHandler(handlerData HandlerData, w http.ResponseWriter, r *http.Request)
FavIconHandler handle favicon
func IndexPageHandler ¶
func IndexPageHandler(handlerData HandlerData, w http.ResponseWriter, r *http.Request)
IndexPageHandler show index/main page
func NotFoundHandler ¶
func NotFoundHandler(handlerData HandlerData, w http.ResponseWriter, r *http.Request)
NotFoundHandler 404 not found handler
func PrevievFileHandler ¶
func PrevievFileHandler(handlerData HandlerData, w http.ResponseWriter, r *http.Request)
PrevievFileHandler handler for previews
func RawFileHandler ¶
func RawFileHandler(handlerData HandlerData, w http.ResponseWriter, r *http.Request)
RawFileHandler handler for previews
Types ¶
Click to show internal directories.
Click to hide internal directories.