requesthandler

package
v0.0.0-...-f8a1a26 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestForwarder

type RequestForwarder interface {
	HandleRequest(r *http.Request) (entity.ServiceResponse, error)
}

type RequestHandler

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

func NewRequestHandler

func NewRequestHandler(
	port int,
	hub RequestForwarder) *RequestHandler

func (*RequestHandler) GetHub

func (handler *RequestHandler) GetHub() RequestForwarder

func (*RequestHandler) GetPort

func (handlerInt *RequestHandler) GetPort() int

func (*RequestHandler) ServeHTTP

func (handler *RequestHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP is the handler for passthrough requests to our backend services

func (*RequestHandler) Start

func (r *RequestHandler) Start(wg *sync.WaitGroup) error

Jump to

Keyboard shortcuts

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