Documentation ¶
Index ¶
- Constants
- func MakeSession(connConfig RemoteConnConfig, authInfo AuthInfo, dialer common.Dialer) *mux.Session
- func RouteTCP(listener net.Listener, streamTimeout time.Duration, singleplex bool, ...)
- func RouteUDP(bindFunc func() (*net.UDPConn, error), streamTimeout time.Duration, ...)
- type AuthInfo
- type Chrome
- type DirectTLS
- type Firefox
- type LocalConnConfig
- type RawConfig
- type RemoteConnConfig
- type Transport
- type WSOverTLS
Constants ¶
View Source
const (
UNORDERED_FLAG = 0x01 // 0000 0001
)
Variables ¶
This section is empty.
Functions ¶
func MakeSession ¶
On different invocations to MakeSession, authInfo.SessionId MUST be different
Types ¶
type LocalConnConfig ¶
type RawConfig ¶
type RawConfig struct { ServerName string ProxyMethod string EncryptionMethod string UID []byte PublicKey []byte NumConn int LocalHost string // jsonOptional LocalPort string // jsonOptional RemoteHost string // jsonOptional RemotePort string // jsonOptional AlternativeNames []string // jsonOptional // defaults set in ProcessRawConfig UDP bool // nullable BrowserSig string // nullable Transport string // nullable CDNOriginHost string // nullable StreamTimeout int // nullable KeepAlive int // nullable }
RawConfig represents the fields in the config json file nullable means if it's empty, a default value will be chosen in ProcessRawConfig jsonOptional means if the json's empty, its value will be set from environment variables or commandline args but it mustn't be empty when ProcessRawConfig is called
func ParseConfig ¶
func (*RawConfig) ProcessRawConfig ¶
func (raw *RawConfig) ProcessRawConfig(worldState common.WorldState) (local LocalConnConfig, remote RemoteConnConfig, auth AuthInfo, err error)
type RemoteConnConfig ¶
Click to show internal directories.
Click to hide internal directories.