handler

package
v0.0.0-...-1a41f11 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MuxHandler

func MuxHandler(w http.ResponseWriter, r *http.Request)

Types

type ExternalServiceReponse

type ExternalServiceReponse struct {
	ServiceUrl     string `json:"service_url"`
	HttpStatusCode int    `json:"http_status_code"`
	Base64Payload  string `json:"base64_payload"`
	ContentType    string `json:"content_type"`
}

type MuxErrorHandler

type MuxErrorHandler struct {
	// contains filtered or unexported fields
}

func NewMuxErrorHandler

func NewMuxErrorHandler(mux http.Handler) *MuxErrorHandler

func (*MuxErrorHandler) ServeHTTP

func (eh *MuxErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type MuxHandleRequest

type MuxHandleRequest struct {
	Urls []string `json:"urls"`
}

type MuxHandleResponse

type MuxHandleResponse struct {
	Responses []ExternalServiceReponse `json:"responses"`
}

type MuxLimiter

type MuxLimiter struct {
	// contains filtered or unexported fields
}

func NewMuxLimiter

func NewMuxLimiter(mux http.Handler) *MuxLimiter

func (*MuxLimiter) ServeHTTP

func (ml *MuxLimiter) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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