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
Click to show internal directories.
Click to hide internal directories.