server

package
v0.0.0-...-7455e70 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright © 2023 The Spray Proxy Contributors

SPDX-License-Identifier: Apache-2.0

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(logger *zap.Logger)

Types

type SprayProxyServer

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

func NewServer

func NewServer(host string, port int, insecureSkipTLS, insecureSkipWebhookVerify, enableDynamicBackends bool, backends map[string]string) (*SprayProxyServer, error)

func (*SprayProxyServer) Handler

func (s *SprayProxyServer) Handler() http.Handler

Handler returns the http.Handler interface for the proxy server.

func (*SprayProxyServer) Run

func (s *SprayProxyServer) Run(stopCh <-chan struct{})

Run launches the proxy server with the pre-configured hostname and address.

Jump to

Keyboard shortcuts

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