Documentation ¶
Index ¶
Constants ¶
View Source
const (
OPTION_ADDR = "addr"
)
View Source
const OPTION_CONN_WAIT_ENABLED_TIMEOUT = "connWaitEnabledTimeout"
View Source
const (
OPTION_DESTINATION = "destination"
)
View Source
const OPTION_ENABLE_KCP = "enableKcp"
View Source
const OPTION_ENABLE_MUX = "enableMux"
View Source
const (
OPTION_HOST = "host"
)
View Source
const (
OPTION_HTTP_CLIENT = "httpClient"
)
View Source
const (
OPTION_ID = "id"
)
View Source
const OPTION_KCP_CRYPT = "kcpCrypt"
View Source
const OPTION_KCP_DATA_SHARD = "kcpDataShard"
View Source
const OPTION_KCP_KEY = "kcpKey"
View Source
const OPTION_KCP_MTU = "kcpMtu"
View Source
const OPTION_KCP_PARITY_SHARD = "kcpParityShard"
View Source
const OPTION_KCP_PRESET = "kcpPreset"
View Source
const OPTION_KCP_RCVWND = "kcpRcvwnd"
View Source
const OPTION_KCP_SNDWND = "kcpSndwnd"
View Source
const (
OPTION_LISTENER = "listener"
)
View Source
const (
OPTION_LOGGER = "logger"
)
View Source
const OPTION_MANUAL = "manual"
View Source
const OPTION_MODE = "mode"
View Source
const OPTION_MUX_BUF = "muxBuf"
View Source
const OPTION_MUX_NOCOMP = "muxNocomp"
View Source
const OPTION_MUX_STREAM_BUF = "muxStreamBuf"
View Source
const OPTION_MUX_VER = "muxVer"
View Source
const (
OPTION_NAME = "name"
)
View Source
const (
OPTION_PORT = "port"
)
View Source
const (
OPTION_RAND_SOURCE = "randSource"
)
View Source
const (
OPTION_SCOPE = "scope"
)
View Source
const (
OPTION_TIMEOUT = "timeout"
)
View Source
const (
OPTION_WEBRTC_CONFIGURATION = "webrtcConfiguration"
)
View Source
const OPTION_WEBRTC_RECEIVE_BUFFER_SIZE = "webrtcReceiveBufferSize"
Variables ¶
View Source
var (
WithAddr, GetAddr = option.New[meepo_interface.Addr](OPTION_ADDR)
)
View Source
var (
WithConnWaitEnabledTimeout, GetConnWaitEnabledTimeoout = option.New[time.Duration](OPTION_CONN_WAIT_ENABLED_TIMEOUT)
)
View Source
var (
WithDestination, GetDestination = option.New[[]byte](OPTION_DESTINATION)
)
View Source
var WithEnableKcp, GetEnableKcp = option.New[bool](OPTION_ENABLE_KCP)
View Source
var WithEnableMux, GetEnableMux = option.New[bool](OPTION_ENABLE_MUX)
View Source
var (
WithHost, GetHost = option.New[string](OPTION_HOST)
)
View Source
var (
WithHttpClient, GetHttpClient = option.New[*http.Client](OPTION_HTTP_CLIENT)
)
View Source
var (
WithID, GetID = option.New[string](OPTION_ID)
)
View Source
var WithKcpCrypt, GetKcpCrypt = option.New[string](OPTION_KCP_CRYPT)
View Source
var WithKcpDataShard, GetKcpDataShard = option.New[int](OPTION_KCP_DATA_SHARD)
View Source
var WithKcpKey, GetKcpKey = option.New[string](OPTION_KCP_KEY)
View Source
var WithKcpMtu, GetKcpMtu = option.New[int](OPTION_KCP_MTU)
View Source
var WithKcpParityShard, GetKcpParityShard = option.New[int](OPTION_KCP_PARITY_SHARD)
View Source
var WithKcpPreset, GetKcpPreset = option.New[string](OPTION_KCP_PRESET)
View Source
var WithKcpRecvwnd, GetKcpRcvwnd = option.New[int](OPTION_KCP_RCVWND)
View Source
var WithKcpSndwnd, GetKcpSndwnd = option.New[int](OPTION_KCP_SNDWND)
View Source
var (
WithLogger, GetLogger = option.New[*logrus.Entry](OPTION_LOGGER)
)
View Source
var WithManual, GetManual = option.New[bool](OPTION_MANUAL)
View Source
var WithMode, GetMode = option.New[string](OPTION_MODE)
View Source
var WithMuxBuf, GetMuxBuf = option.New[int](OPTION_MUX_BUF)
View Source
var WithMuxNocomp, GetMuxNocomp = option.New[bool](OPTION_MUX_NOCOMP)
View Source
var WithMuxStreamBuf, GetMuxStreamBuf = option.New[int](OPTION_MUX_STREAM_BUF)
View Source
var WithMuxVer, GetMuxVer = option.New[int](OPTION_MUX_VER)
View Source
var (
WithName, GetName = option.New[string](OPTION_NAME)
)
View Source
var (
WithPort, GetPort = option.New[string](OPTION_PORT)
)
View Source
var (
WithRandSource, GetRandSource = option.New[rand.Source](OPTION_RAND_SOURCE)
)
View Source
var (
WithScope, GetScope = option.New[string](OPTION_SCOPE)
)
View Source
var (
WithTimeout, GetTimeout = option.New[time.Duration](OPTION_TIMEOUT)
)
View Source
var (
WithWebrtcConfiguration, GetWebrtcConfiguration = option.New[webrtc.Configuration](OPTION_WEBRTC_CONFIGURATION)
)
View Source
var WithWebrtcReceiveBufferSize, GetWebrtcReceiveBufferSize = option.New[uint32](OPTION_WEBRTC_RECEIVE_BUFFER_SIZE)
Functions ¶
func WithListener ¶
func WithListener(l net.Listener) option.ApplyOption
Types ¶
This section is empty.
Source Files ¶
- addr.go
- conn_wait_enabled_timeout.go
- destination.go
- enable_kcp.go
- enable_mux.go
- host.go
- http_client.go
- id.go
- kcp_crypt.go
- kcp_data_shard.go
- kcp_key.go
- kcp_mtu.go
- kcp_nocomp.go
- kcp_parity_shard.go
- kcp_preset.go
- kcp_rcvwnd.go
- kcp_sndwnd.go
- listener.go
- logger.go
- manual.go
- mode.go
- mux_buf.go
- mux_stream_buf.go
- mux_ver.go
- name.go
- port.go
- rand_source.go
- scope.go
- timeout.go
- webrtc_configuration.go
- webrtc_receive_buffer_size.go
Click to show internal directories.
Click to hide internal directories.