mux

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Multiplexer

type Multiplexer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func Listen

func Listen(network, address string) (*Multiplexer, error)

func ListenWithConfig

func ListenWithConfig(network, address string, _c MultiplexerConfig) (*Multiplexer, error)

func (*Multiplexer) Close

func (m *Multiplexer) Close()

func (*Multiplexer) GetListeners added in v1.0.3

func (m *Multiplexer) GetListeners() []string

func (*Multiplexer) HTTP

func (m *Multiplexer) HTTP() net.Listener

func (*Multiplexer) SSH

func (m *Multiplexer) SSH() net.Listener

func (*Multiplexer) StartListener added in v1.0.3

func (m *Multiplexer) StartListener(network, address string) error

func (*Multiplexer) StopListener added in v1.0.3

func (m *Multiplexer) StopListener(address string) error

type MultiplexerConfig

type MultiplexerConfig struct {
	SSH          bool
	HTTP         bool
	TcpKeepAlive int
}

Jump to

Keyboard shortcuts

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