http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: BSD-3-Clause Imports: 20 Imported by: 0

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)

Jump to

Keyboard shortcuts

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