Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChiMux ¶
func NewChiMux(minio MinioHandler) *chi.Mux
Types ¶
type MinioHandler ¶
type MinioHandler struct {
// contains filtered or unexported fields
}
func NewMinioHandler ¶
func NewMinioHandler(cfg *settings.Config, service NotificationService) MinioHandler
func (MinioHandler) GetNotifications ¶
func (h MinioHandler) GetNotifications(next http.Handler) http.Handler
func (MinioHandler) Proxy ¶
func (h MinioHandler) Proxy(w http.ResponseWriter, request *http.Request)
func (MinioHandler) PutNotifications ¶
func (h MinioHandler) PutNotifications(next http.Handler) http.Handler
func (MinioHandler) SendNotifications ¶
func (h MinioHandler) SendNotifications(next http.Handler) http.Handler
type NotificationService ¶
type NotificationService interface {
GetConfigurationPath(bucket string) string
ProcessEvent(event domain.NotificationEvent) error
Save(bucket string, config domain.NotificationConfiguration) (string, error)
}
type ResponseWriter ¶
type ResponseWriter struct {
http.ResponseWriter
Code *int
}
func (ResponseWriter) WriteHeader ¶
func (w ResponseWriter) WriteHeader(code int)
Click to show internal directories.
Click to hide internal directories.