stream

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	DialStream(ctx context.Context) (Stream, error)
	IsVirtual() bool
	Targets() []Dialer
	Policy() balance.Policy
	String() string
}

type Handler

type Handler interface {
	ServeStream(ctx context.Context, stm Stream)
}

type ListenConfig

type ListenConfig interface {
	ListenStream(ctx context.Context) (StreamListener, error)
	IsVirtual() bool
}

type NetworkEnum added in v0.5.0

type NetworkEnum string
const (
	EnumNetworkTCP  NetworkEnum = "tcp"
	EnumNetworkTCP4 NetworkEnum = "tcp4"
	EnumNetworkTCP6 NetworkEnum = "tcp6"
	EnumNetworkUnix NetworkEnum = "unix"
)

type Stream

type Stream = net.Conn

type StreamListener

type StreamListener = net.Listener

Directories

Path Synopsis
lb
tls
handler
lb
log
tls
tls

Jump to

Keyboard shortcuts

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