proxy

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

TODO: separate this usecase to new package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Name     string
	Listener net.Listener
	Quit     context.CancelFunc
	Wg       sync.WaitGroup
	sync.Mutex
}

Proxy hold running proxy data

func New

func New(name string) *Proxy

New initialize new proxy

func (*Proxy) Run

func (p *Proxy) Run(c config.ServerConfig)

Run initialize tcp or tls listener

func (*Proxy) Shutdown

func (p *Proxy) Shutdown()

type ProxyTLS

type ProxyTLS struct {
	*tls.Config
}

Jump to

Keyboard shortcuts

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