Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTrojan ¶
func NewTrojan(option *dialer.GlobalOption, iOption dialer.InstanceOption, link string) (*dialer.Dialer, error)
Types ¶
type Trojan ¶
type Trojan struct { Name string `json:"name"` Server string `json:"server"` Port int `json:"port"` Password string `json:"password"` Sni string `json:"sni"` Type string `json:"type"` Encryption string `json:"encryption"` Host string `json:"host"` Path string `json:"path"` ServiceName string `json:"serviceName"` AllowInsecure bool `json:"allowInsecure"` Protocol string `json:"protocol"` }
func ParseTrojanURL ¶
func ParseTrojanURL(u string, option *dialer.GlobalOption) (data *Trojan, err error)
func (*Trojan) Dialer ¶
func (s *Trojan) Dialer(option *dialer.GlobalOption, iOption dialer.InstanceOption) (*dialer.Dialer, error)
func (*Trojan) ExportToURL ¶
Click to show internal directories.
Click to hide internal directories.