proxyserver

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(ctx context.Context, proxyHandler *ProxyHandler, config *config.SynapseConfig, logger lumber.Logger) error

ListenAndServe starts proxy http server for synapse

Types

type ProxyHandler

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

ProxyHandler defines struct for proxy handler

func NewProxyHandler

func NewProxyHandler(logger lumber.Logger) (*ProxyHandler, error)

NewProxyHandler returns pointer of new instace of ProxyHandler

func (*ProxyHandler) HandlerProxy

func (ph *ProxyHandler) HandlerProxy(w http.ResponseWriter, r *http.Request)

HandlerProxy handles the proxy server

Jump to

Keyboard shortcuts

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