proxy

package
v0.0.0-...-66e36ac Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderSourceNs = "Fence-Source-Ns"
	HeaderOrigDest = "Fence-Orig-Dest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpProxy

type HttpProxy struct {
	config.Server
	// contains filtered or unexported fields
}

func NewHttpProxy

func NewHttpProxy(wormholePort string, serviceCache *cache.Service, server config.Server) (*HttpProxy, error)

func (*HttpProxy) ServeHTTP

func (h *HttpProxy) ServeHTTP(w http.ResponseWriter, req *http.Request)

type Runner

type Runner struct {
	config.Server
}

func New

func New(server config.Server) *Runner

func (*Runner) Start

func (r *Runner) Start(ctx context.Context) error

type Serve

type Serve struct {
	config.Server
	// contains filtered or unexported fields
}

func NewServe

func NewServe(serviceCache *cache.Service, server config.Server) (*Serve, error)

func (*Serve) ListenAndServe

func (s *Serve) ListenAndServe(wormholePorts ...string)

func (*Serve) Name

func (s *Serve) Name() string

func (*Serve) ShutdownServer

func (s *Serve) ShutdownServer(wormholePort int32) error

Jump to

Keyboard shortcuts

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