Documentation ¶
Index ¶
- func RegisterDialerCreator(name string, c Creator)
- type Base
- type ContextDialer
- type Creator
- type Dialer
- type HTTP2Options
- type HTTPOptions
- type ShadowSocks
- func (ss *ShadowSocks) DialContext(ctx context.Context, metadata *C.Metadata) (net.Conn, error)
- func (ss *ShadowSocks) DialUDP(metadata *C.Metadata) (net.PacketConn, error)
- func (ss *ShadowSocks) MarshalJSON() ([]byte, error)
- func (ss *ShadowSocks) StreamConn(c net.Conn, metadata *C.Metadata) (net.Conn, error)
- type ShadowSocksOption
- type ShadowSocksR
- func (ssr *ShadowSocksR) DialContext(ctx context.Context, metadata *C.Metadata) (net.Conn, error)
- func (ssr *ShadowSocksR) DialUDP(metadata *C.Metadata) (net.PacketConn, error)
- func (ssr *ShadowSocksR) MarshalJSON() ([]byte, error)
- func (ssr *ShadowSocksR) StreamConn(c net.Conn, metadata *C.Metadata) (net.Conn, error)
- type ShadowSocksROption
- type Trojan
- type TrojanOption
- type Vmess
- type VmessOption
- type WSOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDialerCreator ¶
Types ¶
type ContextDialer ¶
type Creator ¶
func GetDialerCreator ¶
type Dialer ¶
type Dialer interface { ContextDialer DialUDP(m *C.Metadata) (net.PacketConn, error) }
type HTTP2Options ¶
type HTTPOptions ¶
type ShadowSocks ¶
type ShadowSocks struct { *Base // contains filtered or unexported fields }
func NewShadowSocks ¶
func NewShadowSocks(option *ShadowSocksOption) (*ShadowSocks, error)
func (*ShadowSocks) DialContext ¶
func (*ShadowSocks) DialUDP ¶
func (ss *ShadowSocks) DialUDP(metadata *C.Metadata) (net.PacketConn, error)
func (*ShadowSocks) MarshalJSON ¶
func (ss *ShadowSocks) MarshalJSON() ([]byte, error)
func (*ShadowSocks) StreamConn ¶
type ShadowSocksOption ¶
type ShadowSocksOption struct { Name string `proxy:"name,omitempty"` Server string `proxy:"server"` Port int `proxy:"port"` Password string `proxy:"password"` Cipher string `proxy:"cipher"` UDP bool `proxy:"udp,omitempty"` Plugin string `proxy:"plugin,omitempty"` PluginOpts map[string]interface{} `proxy:"plugin-opts,omitempty"` Remarks string `proxy:"remarks,omitempty"` }
type ShadowSocksR ¶
type ShadowSocksR struct { *Base // contains filtered or unexported fields }
func NewShadowSocksR ¶
func NewShadowSocksR(option *ShadowSocksROption) (*ShadowSocksR, error)
func (*ShadowSocksR) DialContext ¶
func (*ShadowSocksR) DialUDP ¶
func (ssr *ShadowSocksR) DialUDP(metadata *C.Metadata) (net.PacketConn, error)
func (*ShadowSocksR) MarshalJSON ¶
func (ssr *ShadowSocksR) MarshalJSON() ([]byte, error)
func (*ShadowSocksR) StreamConn ¶
type ShadowSocksROption ¶
type ShadowSocksROption struct { Name string `proxy:"name,omitempty"` Server string `proxy:"server"` Port int `proxy:"port"` Password string `proxy:"password"` Cipher string `proxy:"cipher"` Obfs string `proxy:"obfs"` ObfsParam string `proxy:"obfs-param,omitempty"` Protocol string `proxy:"protocol"` ProtocolParam string `proxy:"protocol-param,omitempty"` UDP bool `proxy:"udp,omitempty"` Remarks string `proxy:"remarks,omitempty"` }
type Trojan ¶
type Trojan struct { *Base // contains filtered or unexported fields }
func NewTrojan ¶
func NewTrojan(option *TrojanOption) (*Trojan, error)
func (*Trojan) DialContext ¶
func (*Trojan) MarshalJSON ¶
type TrojanOption ¶
type TrojanOption struct { Name string `proxy:"name,omitempty"` Server string `proxy:"server"` Port int `proxy:"port"` Password string `proxy:"password"` ALPN []string `proxy:"alpn,omitempty"` SNI string `proxy:"sni,omitempty"` SkipCertVerify bool `proxy:"skip-cert-verify,omitempty"` UDP bool `proxy:"udp,omitempty"` Remarks string `proxy:"remarks,omitempty"` }
type Vmess ¶
type Vmess struct { *Base // contains filtered or unexported fields }
func NewVmess ¶
func NewVmess(option *VmessOption) (*Vmess, error)
func (*Vmess) DialContext ¶
func (*Vmess) MarshalJSON ¶
type VmessOption ¶
type VmessOption struct { Name string `proxy:"name,omitempty"` Server string `proxy:"server"` Port uint16 `proxy:"port"` UUID string `proxy:"uuid"` AlterID int `proxy:"alterId,omitempty"` Cipher string `proxy:"cipher"` TLS bool `proxy:"tls,omitempty"` UDP bool `proxy:"udp,omitempty"` Network string `proxy:"network,omitempty"` HTTPOpts HTTPOptions `proxy:"http-opts,omitempty"` HTTP2Opts HTTP2Options `proxy:"h2-opts,omitempty"` WSPath string `proxy:"ws-path,omitempty"` WSHeaders map[string]string `proxy:"ws-headers,omitempty"` SkipCertVerify bool `proxy:"skip-cert-verify,omitempty"` ServerName string `proxy:"servername,omitempty"` Type string `proxy:"type,omitempty"` WSOpts WSOptions `proxy:"ws-opts,omitempty"` }
Click to show internal directories.
Click to hide internal directories.