Documentation ¶
Index ¶
- Constants
- Variables
- func Dial(ctx context.Context, dest net.Destination, ...) (internet.Connection, error)
- func GetOriginalDestination(conn internet.Connection) (net.Destination, error)
- func ListenTCP(ctx context.Context, address net.Address, port net.Port, ...) (internet.Listener, error)
- type Config
- type Listener
Constants ¶
View Source
const SO_ORIGINAL_DST = 80 // nolint: golint,stylecheck
Variables ¶
View Source
var File_transport_internet_tcp_config_proto protoreflect.FileDescriptor
Functions ¶
func Dial ¶
func Dial(ctx context.Context, dest net.Destination, streamSettings *internet.MemoryStreamConfig) (internet.Connection, error)
Dial dials a new TCP connection to the given destination.
func GetOriginalDestination ¶
func GetOriginalDestination(conn internet.Connection) (net.Destination, error)
Types ¶
type Config ¶
type Config struct { HeaderSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=header_settings,json=headerSettings,proto3" json:"header_settings,omitempty"` AcceptProxyProtocol bool `protobuf:"varint,3,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetAcceptProxyProtocol ¶
func (*Config) GetHeaderSettings ¶
func (x *Config) GetHeaderSettings() *serial.TypedMessage
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.