miniohandler

package
v0.0.0-...-22979de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

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

func MinioHandler(mc *minio.Client, site string, singlePage bool) http.Handler

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 NewMetricsHandler

func NewMetricsHandler()

NewMetricsHandler

func ReadyHandler

func ReadyHandler(w http.ResponseWriter, req *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL