Documentation
¶
Index ¶
- Variables
- func ParseTLSConfig(t *TlsConfig) *tls.Config
- func RegisterProtocol[T isProtocol_Protocol](wrap func(T) WrapProxy)
- type Http
- type Manager
- func (*Manager) Descriptor() ([]byte, []int)deprecated
- func (x *Manager) GetGroupNodesMap() map[string]*ManagerNodeArray
- func (x *Manager) GetGroups() []string
- func (x *Manager) GetNodes() map[string]*Point
- func (*Manager) ProtoMessage()
- func (x *Manager) ProtoReflect() protoreflect.Message
- func (x *Manager) Reset()
- func (x *Manager) String() string
- type ManagerNodeArray
- func (*ManagerNodeArray) Descriptor() ([]byte, []int)deprecated
- func (x *ManagerNodeArray) GetGroup() string
- func (x *ManagerNodeArray) GetNodeHashMap() map[string]string
- func (x *ManagerNodeArray) GetNodes() []string
- func (*ManagerNodeArray) ProtoMessage()
- func (x *ManagerNodeArray) ProtoReflect() protoreflect.Message
- func (x *ManagerNodeArray) Reset()
- func (x *ManagerNodeArray) String() string
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetLinks() map[string]*NodeLink
- func (x *Node) GetManager() *Manager
- func (x *Node) GetTcp() *Point
- func (x *Node) GetUdp() *Point
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type NodeLink
- func (*NodeLink) Descriptor() ([]byte, []int)deprecated
- func (x *NodeLink) GetName() string
- func (x *NodeLink) GetType() NodeLinkLinkType
- func (x *NodeLink) GetUrl() string
- func (*NodeLink) ProtoMessage()
- func (x *NodeLink) ProtoReflect() protoreflect.Message
- func (x *NodeLink) Reset()
- func (x *NodeLink) String() string
- type NodeLinkLinkType
- func (NodeLinkLinkType) Descriptor() protoreflect.EnumDescriptor
- func (x NodeLinkLinkType) Enum() *NodeLinkLinkType
- func (NodeLinkLinkType) EnumDescriptor() ([]byte, []int)deprecated
- func (x NodeLinkLinkType) Number() protoreflect.EnumNumber
- func (x NodeLinkLinkType) String() string
- func (NodeLinkLinkType) Type() protoreflect.EnumType
- type None
- type ObfsHttp
- type Point
- func (*Point) Descriptor() ([]byte, []int)deprecated
- func (x *Point) GetGroup() string
- func (x *Point) GetHash() string
- func (x *Point) GetName() string
- func (x *Point) GetOrigin() PointOriginType
- func (x *Point) GetProtocols() []*Protocol
- func (*Point) ProtoMessage()
- func (x *Point) ProtoReflect() protoreflect.Message
- func (x *Point) Reset()
- func (x *Point) String() string
- type PointOriginType
- func (PointOriginType) Descriptor() protoreflect.EnumDescriptor
- func (x PointOriginType) Enum() *PointOriginType
- func (PointOriginType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PointOriginType) Number() protoreflect.EnumNumber
- func (x PointOriginType) String() string
- func (PointOriginType) Type() protoreflect.EnumType
- type Protocol
- func (*Protocol) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol) GetHttp() *Http
- func (x *Protocol) GetNone() *None
- func (x *Protocol) GetObfsHttp() *ObfsHttp
- func (m *Protocol) GetProtocol() isProtocol_Protocol
- func (x *Protocol) GetQuic() *Quic
- func (x *Protocol) GetShadowsocks() *Shadowsocks
- func (x *Protocol) GetShadowsocksr() *Shadowsocksr
- func (x *Protocol) GetSimple() *Simple
- func (x *Protocol) GetSocks5() *Socks5
- func (x *Protocol) GetTrojan() *Trojan
- func (x *Protocol) GetVmess() *Vmess
- func (x *Protocol) GetWebsocket() *Websocket
- func (*Protocol) ProtoMessage()
- func (x *Protocol) ProtoReflect() protoreflect.Message
- func (x *Protocol) Reset()
- func (x *Protocol) String() string
- type Protocol_Http
- type Protocol_None
- type Protocol_ObfsHttp
- type Protocol_Quic
- type Protocol_Shadowsocks
- type Protocol_Shadowsocksr
- type Protocol_Simple
- type Protocol_Socks5
- type Protocol_Trojan
- type Protocol_Vmess
- type Protocol_Websocket
- type Quic
- type Shadowsocks
- func (*Shadowsocks) Descriptor() ([]byte, []int)deprecated
- func (x *Shadowsocks) GetMethod() string
- func (x *Shadowsocks) GetPassword() string
- func (*Shadowsocks) ProtoMessage()
- func (x *Shadowsocks) ProtoReflect() protoreflect.Message
- func (x *Shadowsocks) Reset()
- func (x *Shadowsocks) String() string
- type Shadowsocksr
- func (*Shadowsocksr) Descriptor() ([]byte, []int)deprecated
- func (x *Shadowsocksr) GetMethod() string
- func (x *Shadowsocksr) GetObfs() string
- func (x *Shadowsocksr) GetObfsparam() string
- func (x *Shadowsocksr) GetPassword() string
- func (x *Shadowsocksr) GetPort() string
- func (x *Shadowsocksr) GetProtocol() string
- func (x *Shadowsocksr) GetProtoparam() string
- func (x *Shadowsocksr) GetServer() string
- func (*Shadowsocksr) ProtoMessage()
- func (x *Shadowsocksr) ProtoReflect() protoreflect.Message
- func (x *Shadowsocksr) Reset()
- func (x *Shadowsocksr) String() string
- type Simple
- func (*Simple) Descriptor() ([]byte, []int)deprecated
- func (x *Simple) GetHost() string
- func (x *Simple) GetPacketConnDirect() bool
- func (x *Simple) GetPort() int32
- func (x *Simple) GetTls() *TlsConfig
- func (*Simple) ProtoMessage()
- func (x *Simple) ProtoReflect() protoreflect.Message
- func (x *Simple) Reset()
- func (x *Simple) String() string
- type Socks5
- func (*Socks5) Descriptor() ([]byte, []int)deprecated
- func (x *Socks5) GetHostname() string
- func (x *Socks5) GetPassword() string
- func (x *Socks5) GetUser() string
- func (*Socks5) ProtoMessage()
- func (x *Socks5) ProtoReflect() protoreflect.Message
- func (x *Socks5) Reset()
- func (x *Socks5) String() string
- type TlsConfig
- func (*TlsConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TlsConfig) GetCaCert() [][]byte
- func (x *TlsConfig) GetEnable() bool
- func (x *TlsConfig) GetInsecureSkipVerify() bool
- func (x *TlsConfig) GetServerName() string
- func (*TlsConfig) ProtoMessage()
- func (x *TlsConfig) ProtoReflect() protoreflect.Message
- func (x *TlsConfig) Reset()
- func (x *TlsConfig) String() string
- type Trojan
- type Vmess
- type Websocket
- func (*Websocket) Descriptor() ([]byte, []int)deprecated
- func (x *Websocket) GetHost() string
- func (x *Websocket) GetPath() string
- func (x *Websocket) GetTls() *TlsConfig
- func (*Websocket) ProtoMessage()
- func (x *Websocket) ProtoReflect() protoreflect.Message
- func (x *Websocket) Reset()
- func (x *Websocket) String() string
- type WrapProxy
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PointOriginType_name = map[int32]string{ 0: "node_origin_reserve", 101: "remote", 102: "manual", } PointOriginType_value = map[string]int32{ "node_origin_reserve": 0, "remote": 101, "manual": 102, } )
Enum value maps for PointOriginType.
View Source
var ( NodeLinkLinkType_name = map[int32]string{ 0: "reserve", 1: "trojan", 2: "vmess", 3: "shadowsocks", 4: "shadowsocksr", } NodeLinkLinkType_value = map[string]int32{ "reserve": 0, "trojan": 1, "vmess": 2, "shadowsocks": 3, "shadowsocksr": 4, } )
Enum value maps for NodeLinkLinkType.
View Source
var File_node_node_proto protoreflect.FileDescriptor
Functions ¶
func ParseTLSConfig ¶
func RegisterProtocol ¶
func RegisterProtocol[T isProtocol_Protocol](wrap func(T) WrapProxy)
Types ¶
type Http ¶
type Http struct {
User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
// contains filtered or unexported fields
}
func (*Http) Descriptor
deprecated
func (*Http) GetPassword ¶
func (*Http) ProtoMessage ¶
func (*Http) ProtoMessage()
func (*Http) ProtoReflect ¶
func (x *Http) ProtoReflect() protoreflect.Message
type Manager ¶
type Manager struct {
Groups []string `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
GroupNodesMap map[string]*ManagerNodeArray `` /* 171-byte string literal not displayed */
Nodes map[string]*Point `` /* 151-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Manager) Descriptor
deprecated
func (*Manager) GetGroupNodesMap ¶
func (x *Manager) GetGroupNodesMap() map[string]*ManagerNodeArray
func (*Manager) ProtoMessage ¶
func (*Manager) ProtoMessage()
func (*Manager) ProtoReflect ¶
func (x *Manager) ProtoReflect() protoreflect.Message
type ManagerNodeArray ¶
type ManagerNodeArray struct {
Group string `protobuf:"bytes,1,opt,name=group,json=name,proto3" json:"group,omitempty"`
Nodes []string `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
NodeHashMap map[string]string `` /* 167-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ManagerNodeArray) Descriptor
deprecated
func (*ManagerNodeArray) Descriptor() ([]byte, []int)
Deprecated: Use ManagerNodeArray.ProtoReflect.Descriptor instead.
func (*ManagerNodeArray) GetGroup ¶
func (x *ManagerNodeArray) GetGroup() string
func (*ManagerNodeArray) GetNodeHashMap ¶
func (x *ManagerNodeArray) GetNodeHashMap() map[string]string
func (*ManagerNodeArray) GetNodes ¶
func (x *ManagerNodeArray) GetNodes() []string
func (*ManagerNodeArray) ProtoMessage ¶
func (*ManagerNodeArray) ProtoMessage()
func (*ManagerNodeArray) ProtoReflect ¶
func (x *ManagerNodeArray) ProtoReflect() protoreflect.Message
func (*ManagerNodeArray) Reset ¶
func (x *ManagerNodeArray) Reset()
func (*ManagerNodeArray) String ¶
func (x *ManagerNodeArray) String() string
type Node ¶
type Node struct {
Tcp *Point `protobuf:"bytes,4,opt,name=tcp,proto3" json:"tcp,omitempty"`
Udp *Point `protobuf:"bytes,5,opt,name=udp,proto3" json:"udp,omitempty"`
Links map[string]*NodeLink `` /* 151-byte string literal not displayed */
Manager *Manager `protobuf:"bytes,3,opt,name=manager,proto3" json:"manager,omitempty"`
// contains filtered or unexported fields
}
func (*Node) Descriptor
deprecated
func (*Node) GetManager ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type NodeLink ¶
type NodeLink struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type NodeLinkLinkType `protobuf:"varint,2,opt,name=type,proto3,enum=yuhaiin.node.NodeLinkLinkType" json:"type,omitempty"`
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
// contains filtered or unexported fields
}
func (*NodeLink) Descriptor
deprecated
func (*NodeLink) GetType ¶
func (x *NodeLink) GetType() NodeLinkLinkType
func (*NodeLink) ProtoMessage ¶
func (*NodeLink) ProtoMessage()
func (*NodeLink) ProtoReflect ¶
func (x *NodeLink) ProtoReflect() protoreflect.Message
type NodeLinkLinkType ¶
type NodeLinkLinkType int32
const ( NodeLink_reserve NodeLinkLinkType = 0 NodeLink_trojan NodeLinkLinkType = 1 NodeLink_vmess NodeLinkLinkType = 2 NodeLink_shadowsocks NodeLinkLinkType = 3 NodeLink_shadowsocksr NodeLinkLinkType = 4 )
func (NodeLinkLinkType) Descriptor ¶
func (NodeLinkLinkType) Descriptor() protoreflect.EnumDescriptor
func (NodeLinkLinkType) Enum ¶
func (x NodeLinkLinkType) Enum() *NodeLinkLinkType
func (NodeLinkLinkType) EnumDescriptor
deprecated
func (NodeLinkLinkType) EnumDescriptor() ([]byte, []int)
Deprecated: Use NodeLinkLinkType.Descriptor instead.
func (NodeLinkLinkType) Number ¶
func (x NodeLinkLinkType) Number() protoreflect.EnumNumber
func (NodeLinkLinkType) String ¶
func (x NodeLinkLinkType) String() string
func (NodeLinkLinkType) Type ¶
func (NodeLinkLinkType) Type() protoreflect.EnumType
type None ¶
type None struct {
// contains filtered or unexported fields
}
func (*None) Descriptor
deprecated
func (*None) ProtoMessage ¶
func (*None) ProtoMessage()
func (*None) ProtoReflect ¶
func (x *None) ProtoReflect() protoreflect.Message
type ObfsHttp ¶
type ObfsHttp struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Port string `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
// contains filtered or unexported fields
}
func (*ObfsHttp) Descriptor
deprecated
func (*ObfsHttp) ProtoMessage ¶
func (*ObfsHttp) ProtoMessage()
func (*ObfsHttp) ProtoReflect ¶
func (x *ObfsHttp) ProtoReflect() protoreflect.Message
type Point ¶
type Point struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
Origin PointOriginType `protobuf:"varint,4,opt,name=origin,proto3,enum=yuhaiin.node.PointOriginType" json:"origin,omitempty"`
// will use protocols' order to create dialer
Protocols []*Protocol `protobuf:"bytes,5,rep,name=protocols,proto3" json:"protocols,omitempty"`
// contains filtered or unexported fields
}
func (*Point) Descriptor
deprecated
func (*Point) GetOrigin ¶
func (x *Point) GetOrigin() PointOriginType
func (*Point) GetProtocols ¶
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
func (*Point) ProtoReflect ¶
func (x *Point) ProtoReflect() protoreflect.Message
type PointOriginType ¶
type PointOriginType int32
const ( Point_node_origin_reserve PointOriginType = 0 Point_remote PointOriginType = 101 Point_manual PointOriginType = 102 )
func (PointOriginType) Descriptor ¶
func (PointOriginType) Descriptor() protoreflect.EnumDescriptor
func (PointOriginType) Enum ¶
func (x PointOriginType) Enum() *PointOriginType
func (PointOriginType) EnumDescriptor
deprecated
func (PointOriginType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PointOriginType.Descriptor instead.
func (PointOriginType) Number ¶
func (x PointOriginType) Number() protoreflect.EnumNumber
func (PointOriginType) String ¶
func (x PointOriginType) String() string
func (PointOriginType) Type ¶
func (PointOriginType) Type() protoreflect.EnumType
type Protocol ¶
type Protocol struct {
// Types that are assignable to Protocol:
// *Protocol_Shadowsocks
// *Protocol_Shadowsocksr
// *Protocol_Vmess
// *Protocol_Websocket
// *Protocol_Quic
// *Protocol_ObfsHttp
// *Protocol_Trojan
// *Protocol_Simple
// *Protocol_None
// *Protocol_Socks5
// *Protocol_Http
Protocol isProtocol_Protocol `protobuf_oneof:"protocol"`
// contains filtered or unexported fields
}
func (*Protocol) Descriptor
deprecated
func (*Protocol) GetObfsHttp ¶
func (*Protocol) GetProtocol ¶
func (m *Protocol) GetProtocol() isProtocol_Protocol
func (*Protocol) GetShadowsocks ¶
func (x *Protocol) GetShadowsocks() *Shadowsocks
func (*Protocol) GetShadowsocksr ¶
func (x *Protocol) GetShadowsocksr() *Shadowsocksr
func (*Protocol) GetWebsocket ¶
func (*Protocol) ProtoMessage ¶
func (*Protocol) ProtoMessage()
func (*Protocol) ProtoReflect ¶
func (x *Protocol) ProtoReflect() protoreflect.Message
type Protocol_Http ¶
type Protocol_Http struct {
Http *Http `protobuf:"bytes,11,opt,name=http,proto3,oneof"`
}
type Protocol_None ¶
type Protocol_None struct {
None *None `protobuf:"bytes,9,opt,name=none,proto3,oneof"`
}
type Protocol_ObfsHttp ¶
type Protocol_ObfsHttp struct {
ObfsHttp *ObfsHttp `protobuf:"bytes,6,opt,name=obfs_http,proto3,oneof"`
}
type Protocol_Quic ¶
type Protocol_Quic struct {
Quic *Quic `protobuf:"bytes,5,opt,name=quic,proto3,oneof"`
}
type Protocol_Shadowsocks ¶
type Protocol_Shadowsocks struct {
Shadowsocks *Shadowsocks `protobuf:"bytes,1,opt,name=shadowsocks,proto3,oneof"`
}
type Protocol_Shadowsocksr ¶
type Protocol_Shadowsocksr struct {
Shadowsocksr *Shadowsocksr `protobuf:"bytes,2,opt,name=shadowsocksr,proto3,oneof"`
}
type Protocol_Simple ¶
type Protocol_Simple struct {
Simple *Simple `protobuf:"bytes,8,opt,name=simple,proto3,oneof"`
}
type Protocol_Socks5 ¶
type Protocol_Socks5 struct {
Socks5 *Socks5 `protobuf:"bytes,10,opt,name=socks5,proto3,oneof"`
}
type Protocol_Trojan ¶
type Protocol_Trojan struct {
Trojan *Trojan `protobuf:"bytes,7,opt,name=trojan,proto3,oneof"`
}
type Protocol_Vmess ¶
type Protocol_Vmess struct {
Vmess *Vmess `protobuf:"bytes,3,opt,name=vmess,proto3,oneof"`
}
type Protocol_Websocket ¶
type Protocol_Websocket struct {
Websocket *Websocket `protobuf:"bytes,4,opt,name=websocket,proto3,oneof"`
}
type Quic ¶
type Quic struct {
Tls *TlsConfig `protobuf:"bytes,1,opt,name=tls,proto3" json:"tls,omitempty"`
// contains filtered or unexported fields
}
func (*Quic) Descriptor
deprecated
func (*Quic) ProtoMessage ¶
func (*Quic) ProtoMessage()
func (*Quic) ProtoReflect ¶
func (x *Quic) ProtoReflect() protoreflect.Message
type Shadowsocks ¶
type Shadowsocks struct {
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
// contains filtered or unexported fields
}
func (*Shadowsocks) Descriptor
deprecated
func (*Shadowsocks) Descriptor() ([]byte, []int)
Deprecated: Use Shadowsocks.ProtoReflect.Descriptor instead.
func (*Shadowsocks) GetMethod ¶
func (x *Shadowsocks) GetMethod() string
func (*Shadowsocks) GetPassword ¶
func (x *Shadowsocks) GetPassword() string
func (*Shadowsocks) ProtoMessage ¶
func (*Shadowsocks) ProtoMessage()
func (*Shadowsocks) ProtoReflect ¶
func (x *Shadowsocks) ProtoReflect() protoreflect.Message
func (*Shadowsocks) Reset ¶
func (x *Shadowsocks) Reset()
func (*Shadowsocks) String ¶
func (x *Shadowsocks) String() string
type Shadowsocksr ¶
type Shadowsocksr struct {
Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
Port string `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
Obfs string `protobuf:"bytes,5,opt,name=obfs,proto3" json:"obfs,omitempty"`
Obfsparam string `protobuf:"bytes,6,opt,name=obfsparam,proto3" json:"obfsparam,omitempty"`
Protocol string `protobuf:"bytes,7,opt,name=protocol,proto3" json:"protocol,omitempty"`
Protoparam string `protobuf:"bytes,8,opt,name=protoparam,proto3" json:"protoparam,omitempty"`
// contains filtered or unexported fields
}
func (*Shadowsocksr) Descriptor
deprecated
func (*Shadowsocksr) Descriptor() ([]byte, []int)
Deprecated: Use Shadowsocksr.ProtoReflect.Descriptor instead.
func (*Shadowsocksr) GetMethod ¶
func (x *Shadowsocksr) GetMethod() string
func (*Shadowsocksr) GetObfs ¶
func (x *Shadowsocksr) GetObfs() string
func (*Shadowsocksr) GetObfsparam ¶
func (x *Shadowsocksr) GetObfsparam() string
func (*Shadowsocksr) GetPassword ¶
func (x *Shadowsocksr) GetPassword() string
func (*Shadowsocksr) GetPort ¶
func (x *Shadowsocksr) GetPort() string
func (*Shadowsocksr) GetProtocol ¶
func (x *Shadowsocksr) GetProtocol() string
func (*Shadowsocksr) GetProtoparam ¶
func (x *Shadowsocksr) GetProtoparam() string
func (*Shadowsocksr) GetServer ¶
func (x *Shadowsocksr) GetServer() string
func (*Shadowsocksr) ProtoMessage ¶
func (*Shadowsocksr) ProtoMessage()
func (*Shadowsocksr) ProtoReflect ¶
func (x *Shadowsocksr) ProtoReflect() protoreflect.Message
func (*Shadowsocksr) Reset ¶
func (x *Shadowsocksr) Reset()
func (*Shadowsocksr) String ¶
func (x *Shadowsocksr) String() string
type Simple ¶
type Simple struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
// udp will write to every packet target instead of only write to host:port
PacketConnDirect bool `protobuf:"varint,3,opt,name=packet_conn_direct,proto3" json:"packet_conn_direct,omitempty"`
Tls *TlsConfig `protobuf:"bytes,4,opt,name=tls,json=tls_config,proto3" json:"tls,omitempty"`
// contains filtered or unexported fields
}
func (*Simple) Descriptor
deprecated
func (*Simple) GetPacketConnDirect ¶
func (*Simple) ProtoMessage ¶
func (*Simple) ProtoMessage()
func (*Simple) ProtoReflect ¶
func (x *Simple) ProtoReflect() protoreflect.Message
type Socks5 ¶
type Socks5 struct {
// eg: 127.0.0.1
Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // TODO: add override hostname options
// contains filtered or unexported fields
}
func (*Socks5) Descriptor
deprecated
func (*Socks5) GetHostname ¶
func (*Socks5) GetPassword ¶
func (*Socks5) ProtoMessage ¶
func (*Socks5) ProtoMessage()
func (*Socks5) ProtoReflect ¶
func (x *Socks5) ProtoReflect() protoreflect.Message
type TlsConfig ¶
type TlsConfig struct {
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
ServerName string `protobuf:"bytes,2,opt,name=server_name,proto3" json:"server_name,omitempty"`
CaCert [][]byte `protobuf:"bytes,3,rep,name=ca_cert,proto3" json:"ca_cert,omitempty"`
InsecureSkipVerify bool `protobuf:"varint,4,opt,name=insecure_skip_verify,proto3" json:"insecure_skip_verify,omitempty"`
// contains filtered or unexported fields
}
func (*TlsConfig) Descriptor
deprecated
func (*TlsConfig) GetInsecureSkipVerify ¶
func (*TlsConfig) GetServerName ¶
func (*TlsConfig) ProtoMessage ¶
func (*TlsConfig) ProtoMessage()
func (*TlsConfig) ProtoReflect ¶
func (x *TlsConfig) ProtoReflect() protoreflect.Message
type Trojan ¶
type Trojan struct {
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
Peer string `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"`
// contains filtered or unexported fields
}
func (*Trojan) Descriptor
deprecated
func (*Trojan) GetPassword ¶
func (*Trojan) ProtoMessage ¶
func (*Trojan) ProtoMessage()
func (*Trojan) ProtoReflect ¶
func (x *Trojan) ProtoReflect() protoreflect.Message
type Vmess ¶
type Vmess struct {
// uuid
Uuid string `protobuf:"bytes,1,opt,name=uuid,json=id,proto3" json:"uuid,omitempty"`
// alter id
AlterId string `protobuf:"bytes,2,opt,name=alter_id,json=aid,proto3" json:"alter_id,omitempty"`
Security string `protobuf:"bytes,3,opt,name=security,proto3" json:"security,omitempty"`
// contains filtered or unexported fields
}
func (*Vmess) Descriptor
deprecated
func (*Vmess) GetAlterId ¶
func (*Vmess) GetSecurity ¶
func (*Vmess) ProtoMessage ¶
func (*Vmess) ProtoMessage()
func (*Vmess) ProtoReflect ¶
func (x *Vmess) ProtoReflect() protoreflect.Message
type Websocket ¶
type Websocket struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Tls *TlsConfig `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"`
// contains filtered or unexported fields
}
func (*Websocket) Descriptor
deprecated
func (*Websocket) ProtoMessage ¶
func (*Websocket) ProtoMessage()
func (*Websocket) ProtoReflect ¶
func (x *Websocket) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.