relay

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Relay

type Relay struct {
	ListenType    string
	TransportType string
	LocalTCPAddr  *net.TCPAddr
	LocalUDPAddr  *net.UDPAddr
	TP            transporter.RelayTransporter

	Name string
	L    *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewRelay

func NewRelay(cfg *config.RelayConfig) (*Relay, error)

func (*Relay) Close added in v1.1.0

func (r *Relay) Close()

func (*Relay) ListenAndServe

func (r *Relay) ListenAndServe() error

func (*Relay) RunLocalMTCPServer added in v1.1.2

func (r *Relay) RunLocalMTCPServer() error

func (*Relay) RunLocalMWSSServer

func (r *Relay) RunLocalMWSSServer() error

func (*Relay) RunLocalTCPServer

func (r *Relay) RunLocalTCPServer() error

func (*Relay) RunLocalUDPServer

func (r *Relay) RunLocalUDPServer() error

func (*Relay) RunLocalWSSServer

func (r *Relay) RunLocalWSSServer() error

func (*Relay) RunLocalWSServer added in v0.1.2

func (r *Relay) RunLocalWSServer() error

Jump to

Keyboard shortcuts

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