listener

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package listener handles TLS ALPN routing magic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

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

Listener that sources connections from all given backends, and routes TLS connection to wallhack and the plugin according to the ALPN field of the client.

func New

func New(backends []net.Listener, wallhackCfg, pluginCfg *tls.Config) *Listener

New creates a new listener that sources connections from all given backends, and routes TLS connection to wallhack and the plugin according to the ALPN field of the client.

func (*Listener) Listen

func (l *Listener) Listen(ctx context.Context, log logr.Logger) error

Listen returns a rungroup compatible method that listens on the configured backends an shoves connections into wallhack and plugin.

func (*Listener) PluginListener

func (l *Listener) PluginListener() net.Listener

PluginListener returns the frontend listener for the configured plugin.

func (*Listener) WallhackListener

func (l *Listener) WallhackListener() net.Listener

WallhackListener returns the frontend listener for wallhack.

Jump to

Keyboard shortcuts

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