Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InternalServerErrorHandler http.HandlerFunc
InternalServerErrorHandler is a handler for providing internal server error. By default the handler returns text/plain message with "internal server error" string.
Functions ¶
func MinioHandler ¶
MinioHandler returns the http handler which serves content from MinIO server backend. The function takes a minio client which is a minio go client, a site parameter which is the site directory in the bucket eg.: websites/zamzi. When singlePage option is true then when the minio does not find a requested path it will try to render the /index.html as the result. This will useful for single page apps (React/Angular/etc..).
func ReadyHandler ¶
func ReadyHandler(w http.ResponseWriter, req *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.