interfaces

package
v0.0.0-...-75fa4b0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 4 Imported by: 39

Documentation

Index

Constants

View Source
const ExtraOptionsAbstractDialer = "ExtraOptionsUseAbstractDialer"
View Source
const ExtraOptionsAbstractListener = "ExtraOptionsUseAbstractListener"
View Source
const ExtraOptionsBoostConnectionGracefulShutdownRequest = "ExtraOptionsBoostConnectionGracefulShutdownRequest"
View Source
const ExtraOptionsBoostConnectionSettingsHTTPTransport = "ExtraOptionsBoostConnectionSettingsHTTPTransport"
View Source
const ExtraOptionsBoostConnectionShouldNotRedial = "ExtraOptionsBoostConnectionShouldNotRedial"
View Source
const ExtraOptionsConnID = "ExtraOptionsConnID"
View Source
const ExtraOptionsDisableAutoQuitForClient = "ExtraOptionsDisableAutoQuitForClient"
View Source
const ExtraOptionsDisableFEC = "ExtraOptionsDisableFEC"
View Source
const ExtraOptionsFECPacketAssemblyOpt = "ExtraOptionsFECPacketAssemblyOpt"
View Source
const ExtraOptionsHTTPClientDialAlternativeChannel = "ExtraOptionsHTTPClientDialAlternativeChannel"
View Source
const ExtraOptionsHTTPDialAddr = "ExtraOptionsHTTPDialAddr"
View Source
const ExtraOptionsHTTPNetworkBufferSize = "ExtraOptionsHTTPNetworkBufferSize"
View Source
const ExtraOptionsHTTPServerStreamRelay = "ExtraOptionsHTTPServerStreamRelay"
View Source
const ExtraOptionsHTTPTransportConnIsBoostConnection = "ExtraOptionsHTTPTransportConnIsBoostConnection"
View Source
const ExtraOptionsHTTPUseSystemHTTPProxy = "ExtraOptionsHTTPUseSystemHTTPProxy"
View Source
const ExtraOptionsHTTPUseSystemSocksProxy = "ExtraOptionsHTTPUseSystemSocksProxy"
View Source
const ExtraOptionsLocalUDPBindPort = "ExtraOptionsLocalUDPBindPort"
View Source
const ExtraOptionsMessageBus = "ExtraOptionsMessageBus"
View Source
const ExtraOptionsMessageBusByConn = "ExtraOptionsMessageBusByConn"
View Source
const ExtraOptionsUDPFECEnabled = "ExtraOptionsUDPFECEnabled"
View Source
const ExtraOptionsUDPInitialData = "ExtraOptionsUDPInitialData"
View Source
const ExtraOptionsUDPMask = "ExtraOptionsUDPMask"
View Source
const ExtraOptionsUDPShouldMask = "ExtraOptionsUDPShouldMask"
View Source
const ExtraOptionsUDPTimeoutTime = "ExtraOptionsUDPTimeoutTime"
View Source
const ExtraOptionsUniConnAttrib = "ExtraOptionsUniConnAttrib"
View Source
const ExtraOptionsUsePacketArmor = "ExtraOptionsUsePacketArmor"
View Source
const ExtraOptionsUseWebSocketInsteadOfHTTP = "ExtraOptionsUseWebSocketInsteadOfHTTP"

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractDialer

type AbstractDialer interface {
	Dial(ctx context.Context, token string) (net.Conn, error)
}

type AbstractListener

type AbstractListener interface {
	Accept(ctx context.Context) (net.Conn, string, error)
}

type ErrorCorrectionFacility

type ErrorCorrectionFacility interface {
	AddShard(id int, data []byte) (done bool, encoded []byte)
	Reconstruct() [][]byte

	AddData(data []byte) (id int, wrappedData []byte)
	ConstructReconstructShard() (id int, encoded []byte, more bool)

	MaxShardYieldRemaining() int
}

type ErrorCorrectionFacilityFactory

type ErrorCorrectionFacilityFactory interface {
	Create(ctx context.Context) ErrorCorrectionFacility
}

type ExtraOptionsAbstractDialerValue

type ExtraOptionsAbstractDialerValue struct {
	AbsDialer    AbstractDialer
	UseAbsDialer bool
}

type ExtraOptionsAbstractListenerValue

type ExtraOptionsAbstractListenerValue struct {
	AbsListener    AbstractListener
	UseAbsListener bool
}

type ExtraOptionsBoostConnectionGracefulShutdownRequestValue

type ExtraOptionsBoostConnectionGracefulShutdownRequestValue struct {
	ShouldClose chan interface{}
}

type ExtraOptionsBoostConnectionSettingsHTTPTransportValue

type ExtraOptionsBoostConnectionSettingsHTTPTransportValue struct {
	MaxBoostTxConnection int
	MaxBoostRxConnection int
}

type ExtraOptionsBoostConnectionShouldNotRedialValue

type ExtraOptionsBoostConnectionShouldNotRedialValue struct {
	ShouldNotReDial int32
}

type ExtraOptionsFECPacketAssemblyOptValue

type ExtraOptionsFECPacketAssemblyOptValue struct {
	RxMaxTimeInSecond int
	TxEpochTimeInMs   int
}

type ExtraOptionsHTTPDialAddrValue

type ExtraOptionsHTTPDialAddrValue struct {
	Addr string
}

type ExtraOptionsHTTPNetworkBufferSizeValue

type ExtraOptionsHTTPNetworkBufferSizeValue struct {
	NetworkBufferSize int
}

type ExtraOptionsHTTPServerStreamRelayValue

type ExtraOptionsHTTPServerStreamRelayValue struct {
	Relay StreamRelayer
}

type ExtraOptionsLocalUDPBindPortValue

type ExtraOptionsLocalUDPBindPortValue struct {
	LocalPort uint16
	LocalIP   *net.IP
}

type ExtraOptionsUDPInitialDataValue

type ExtraOptionsUDPInitialDataValue struct {
	Data []byte
}

type ExtraOptionsUDPTimeoutTimeValue

type ExtraOptionsUDPTimeoutTimeValue struct {
	TimeoutTimeInSeconds int
}

type ExtraOptionsUniConnAttribValue

type ExtraOptionsUniConnAttribValue struct {
	ID   []byte
	Rand []byte
	Iter int32
}

type ExtraOptionsUsePacketArmorValue

type ExtraOptionsUsePacketArmorValue struct {
	PacketArmorPaddingTo int
	UsePacketArmor       bool
}

type GetTransmitLayerSentRecvStats

type GetTransmitLayerSentRecvStats interface {
	GetTransmitLayerSentRecvStats() (uint64, uint64)
}

type Masker

type Masker interface {
	Mask(input io.Reader, output io.Writer) error
	UnMask(input io.Reader, output io.Writer) error
}

type QualityEstimator

type QualityEstimator interface {
	OnSendPing(ping proto.PingHeader)
	OnReceivePong(pong proto.PongHeader)
}

type RSParityShardSum

type RSParityShardSum struct {
	ParityLookupTable []int
}

type StreamRelayer

type StreamRelayer interface {
	RelayStream(conn io.ReadWriteCloser, ctx context.Context)
}

type SurrogateDialer

type SurrogateDialer interface {
	Dial(network, address string, port uint16, ctx context.Context) (net.Conn, error)
	NotifyMeltdown(reason error)
}

type TrafficWithChannelTag

type TrafficWithChannelTag struct {
	Channel uint16
	Payload []byte
}

type UDPPacket

type UDPPacket struct {
	Source  *net.UDPAddr
	Dest    *net.UDPAddr
	Payload []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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