Documentation ¶
Index ¶
- Variables
- type Direct
- type Drop
- type Grpc
- type Host
- type Http
- type Http2
- type IsProtocol_Protocol
- type Mux
- type None
- type ObfsHttp
- type Protocol
- func (*Protocol) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol) GetDirect() *Direct
- func (x *Protocol) GetDrop() *Drop
- func (x *Protocol) GetGrpc() *Grpc
- func (x *Protocol) GetHttp() *Http
- func (x *Protocol) GetHttp2() *Http2
- func (x *Protocol) GetMux() *Mux
- func (x *Protocol) GetNone() *None
- func (x *Protocol) GetObfsHttp() *ObfsHttp
- func (m *Protocol) GetProtocol() isProtocol_Protocol
- func (x *Protocol) GetQuic() *Quic
- func (x *Protocol) GetReality() *Reality
- func (x *Protocol) GetReject() *Reject
- func (x *Protocol) GetShadowsocks() *Shadowsocks
- func (x *Protocol) GetShadowsocksr() *Shadowsocksr
- func (x *Protocol) GetSimple() *Simple
- func (x *Protocol) GetSocks5() *Socks5
- func (x *Protocol) GetTls() *TlsConfig
- func (x *Protocol) GetTrojan() *Trojan
- func (x *Protocol) GetVless() *Vless
- func (x *Protocol) GetVmess() *Vmess
- func (x *Protocol) GetWebsocket() *Websocket
- func (x *Protocol) GetWireguard() *Wireguard
- func (x *Protocol) GetYuubinsya() *Yuubinsya
- func (*Protocol) ProtoMessage()
- func (x *Protocol) ProtoReflect() protoreflect.Message
- func (x *Protocol) Reset()
- func (x *Protocol) String() string
- type Protocol_Direct
- type Protocol_Drop
- type Protocol_Grpc
- type Protocol_Http
- type Protocol_Http2
- type Protocol_Mux
- type Protocol_None
- type Protocol_ObfsHttp
- type Protocol_Quic
- type Protocol_Reality
- type Protocol_Reject
- type Protocol_Shadowsocks
- type Protocol_Shadowsocksr
- type Protocol_Simple
- type Protocol_Socks5
- type Protocol_Tls
- type Protocol_Trojan
- type Protocol_Vless
- type Protocol_Vmess
- type Protocol_Websocket
- type Protocol_Wireguard
- type Protocol_Yuubinsya
- type Quic
- type Reality
- func (*Reality) Descriptor() ([]byte, []int)deprecated
- func (x *Reality) GetDebug() bool
- func (x *Reality) GetPublicKey() string
- func (x *Reality) GetServerName() string
- func (x *Reality) GetShortId() string
- func (*Reality) ProtoMessage()
- func (x *Reality) ProtoReflect() protoreflect.Message
- func (x *Reality) Reset()
- func (x *Reality) String() string
- type Reject
- 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) GetAlternateHost() []*Host
- func (x *Simple) GetHost() string
- func (x *Simple) GetPort() int32
- 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) GetEchConfig() []byte
- func (x *TlsConfig) GetEnable() bool
- func (x *TlsConfig) GetInsecureSkipVerify() bool
- func (x *TlsConfig) GetNextProtos() []string
- func (x *TlsConfig) GetServerNames() []string
- func (*TlsConfig) ProtoMessage()
- func (x *TlsConfig) ProtoReflect() protoreflect.Message
- func (x *TlsConfig) Reset()
- func (x *TlsConfig) String() string
- type Trojan
- type Vless
- type Vmess
- type Websocket
- type Wireguard
- func (*Wireguard) Descriptor() ([]byte, []int)deprecated
- func (x *Wireguard) GetEndpoint() []string
- func (x *Wireguard) GetIdleTimeout() int32
- func (x *Wireguard) GetMtu() int32
- func (x *Wireguard) GetPeers() []*WireguardPeerConfig
- func (x *Wireguard) GetReserved() []byte
- func (x *Wireguard) GetSecretKey() string
- func (*Wireguard) ProtoMessage()
- func (x *Wireguard) ProtoReflect() protoreflect.Message
- func (x *Wireguard) Reset()
- func (x *Wireguard) String() string
- type WireguardPeerConfig
- func (*WireguardPeerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *WireguardPeerConfig) GetAllowedIps() []string
- func (x *WireguardPeerConfig) GetEndpoint() string
- func (x *WireguardPeerConfig) GetKeepAlive() int32
- func (x *WireguardPeerConfig) GetPreSharedKey() string
- func (x *WireguardPeerConfig) GetPublicKey() string
- func (*WireguardPeerConfig) ProtoMessage()
- func (x *WireguardPeerConfig) ProtoReflect() protoreflect.Message
- func (x *WireguardPeerConfig) Reset()
- func (x *WireguardPeerConfig) String() string
- type Yuubinsya
- func (*Yuubinsya) Descriptor() ([]byte, []int)deprecated
- func (x *Yuubinsya) GetPassword() string
- func (x *Yuubinsya) GetTcpEncrypt() bool
- func (x *Yuubinsya) GetUdpEncrypt() bool
- func (x *Yuubinsya) GetUdpOverStream() bool
- func (*Yuubinsya) ProtoMessage()
- func (x *Yuubinsya) ProtoReflect() protoreflect.Message
- func (x *Yuubinsya) Reset()
- func (x *Yuubinsya) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_node_protocol_protocol_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Direct ¶
type Direct struct {
// contains filtered or unexported fields
}
func (*Direct) Descriptor
deprecated
func (*Direct) ProtoMessage ¶
func (*Direct) ProtoMessage()
func (*Direct) ProtoReflect ¶
func (x *Direct) ProtoReflect() protoreflect.Message
type Drop ¶
type Drop struct {
// contains filtered or unexported fields
}
func (*Drop) Descriptor
deprecated
func (*Drop) ProtoMessage ¶
func (*Drop) ProtoMessage()
func (*Drop) ProtoReflect ¶
func (x *Drop) ProtoReflect() protoreflect.Message
type Grpc ¶
type Grpc struct { Tls *TlsConfig `protobuf:"bytes,1,opt,name=tls,proto3" json:"tls,omitempty"` // contains filtered or unexported fields }
func (*Grpc) Descriptor
deprecated
func (*Grpc) ProtoMessage ¶
func (*Grpc) ProtoMessage()
func (*Grpc) ProtoReflect ¶
func (x *Grpc) ProtoReflect() protoreflect.Message
type Host ¶
type Host 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"` // contains filtered or unexported fields }
func (*Host) Descriptor
deprecated
func (*Host) ProtoMessage ¶
func (*Host) ProtoMessage()
func (*Host) ProtoReflect ¶
func (x *Host) ProtoReflect() protoreflect.Message
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 Http2 ¶
type Http2 struct { Concurrency int32 `protobuf:"varint,1,opt,name=concurrency,proto3" json:"concurrency,omitempty"` // contains filtered or unexported fields }
func (*Http2) Descriptor
deprecated
func (*Http2) GetConcurrency ¶
func (*Http2) ProtoMessage ¶
func (*Http2) ProtoMessage()
func (*Http2) ProtoReflect ¶
func (x *Http2) ProtoReflect() protoreflect.Message
type IsProtocol_Protocol ¶ added in v0.3.3
type IsProtocol_Protocol interface {
// contains filtered or unexported methods
}
type Mux ¶
type Mux struct { Concurrency int32 `protobuf:"varint,1,opt,name=concurrency,proto3" json:"concurrency,omitempty"` // contains filtered or unexported fields }
func (*Mux) Descriptor
deprecated
func (*Mux) GetConcurrency ¶
func (*Mux) ProtoMessage ¶
func (*Mux) ProtoMessage()
func (*Mux) ProtoReflect ¶
func (x *Mux) ProtoReflect() protoreflect.Message
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 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_Direct // *Protocol_Reject // *Protocol_Yuubinsya // *Protocol_Grpc // *Protocol_Http2 // *Protocol_Reality // *Protocol_Tls // *Protocol_Wireguard // *Protocol_Mux // *Protocol_Drop // *Protocol_Vless 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) GetReality ¶
func (*Protocol) GetShadowsocks ¶
func (x *Protocol) GetShadowsocks() *Shadowsocks
func (*Protocol) GetShadowsocksr ¶
func (x *Protocol) GetShadowsocksr() *Shadowsocksr
func (*Protocol) GetWebsocket ¶
func (*Protocol) GetWireguard ¶
func (*Protocol) GetYuubinsya ¶
func (*Protocol) ProtoMessage ¶
func (*Protocol) ProtoMessage()
func (*Protocol) ProtoReflect ¶
func (x *Protocol) ProtoReflect() protoreflect.Message
type Protocol_Direct ¶
type Protocol_Direct struct {
Direct *Direct `protobuf:"bytes,12,opt,name=direct,proto3,oneof"`
}
type Protocol_Drop ¶
type Protocol_Drop struct {
Drop *Drop `protobuf:"bytes,21,opt,name=drop,proto3,oneof"`
}
type Protocol_Grpc ¶
type Protocol_Grpc struct {
Grpc *Grpc `protobuf:"bytes,15,opt,name=grpc,proto3,oneof"`
}
type Protocol_Http ¶
type Protocol_Http struct {
Http *Http `protobuf:"bytes,11,opt,name=http,proto3,oneof"`
}
type Protocol_Http2 ¶
type Protocol_Http2 struct {
Http2 *Http2 `protobuf:"bytes,16,opt,name=http2,proto3,oneof"`
}
type Protocol_Mux ¶
type Protocol_Mux struct {
Mux *Mux `protobuf:"bytes,20,opt,name=mux,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_Reality ¶
type Protocol_Reality struct {
Reality *Reality `protobuf:"bytes,17,opt,name=reality,proto3,oneof"`
}
type Protocol_Reject ¶
type Protocol_Reject struct {
Reject *Reject `protobuf:"bytes,13,opt,name=reject,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_Tls ¶
type Protocol_Tls struct {
Tls *TlsConfig `protobuf:"bytes,18,opt,name=tls,proto3,oneof"`
}
type Protocol_Trojan ¶
type Protocol_Trojan struct {
Trojan *Trojan `protobuf:"bytes,7,opt,name=trojan,proto3,oneof"`
}
type Protocol_Vless ¶ added in v0.3.4
type Protocol_Vless struct {
Vless *Vless `protobuf:"bytes,22,opt,name=vless,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 Protocol_Wireguard ¶
type Protocol_Wireguard struct {
Wireguard *Wireguard `protobuf:"bytes,19,opt,name=wireguard,proto3,oneof"`
}
type Protocol_Yuubinsya ¶
type Protocol_Yuubinsya struct {
Yuubinsya *Yuubinsya `protobuf:"bytes,14,opt,name=yuubinsya,proto3,oneof"`
}
type Quic ¶
type Quic struct { Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` 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 Reality ¶
type Reality struct { ServerName string `protobuf:"bytes,1,opt,name=server_name,proto3" json:"server_name,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=public_key,proto3" json:"public_key,omitempty"` ShortId string `protobuf:"bytes,3,opt,name=short_id,proto3" json:"short_id,omitempty"` Debug bool `protobuf:"varint,4,opt,name=debug,proto3" json:"debug,omitempty"` // contains filtered or unexported fields }
func (*Reality) Descriptor
deprecated
func (*Reality) GetPublicKey ¶
func (*Reality) GetServerName ¶
func (*Reality) GetShortId ¶
func (*Reality) ProtoMessage ¶
func (*Reality) ProtoMessage()
func (*Reality) ProtoReflect ¶
func (x *Reality) ProtoReflect() protoreflect.Message
type Reject ¶
type Reject struct {
// contains filtered or unexported fields
}
func (*Reject) Descriptor
deprecated
func (*Reject) ProtoMessage ¶
func (*Reject) ProtoMessage()
func (*Reject) ProtoReflect ¶
func (x *Reject) 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"` AlternateHost []*Host `protobuf:"bytes,5,rep,name=alternate_host,proto3" json:"alternate_host,omitempty"` // contains filtered or unexported fields }
func (*Simple) Descriptor
deprecated
func (*Simple) GetAlternateHost ¶
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"` ServerNames []string `protobuf:"bytes,6,rep,name=server_names,json=servernames,proto3" json:"server_names,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"` // next_protos ALPN Next Protocol // eg: h2, http/1.1 NextProtos []string `protobuf:"bytes,5,rep,name=next_protos,proto3" json:"next_protos,omitempty"` EchConfig []byte `protobuf:"bytes,7,opt,name=ech_config,proto3" json:"ech_config,omitempty"` // contains filtered or unexported fields }
func (*TlsConfig) Descriptor
deprecated
func (*TlsConfig) GetEchConfig ¶ added in v0.3.7
func (*TlsConfig) GetInsecureSkipVerify ¶
func (*TlsConfig) GetNextProtos ¶
func (*TlsConfig) GetServerNames ¶
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 Vless ¶ added in v0.3.4
type Vless struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*Vless) Descriptor
deprecated
added in
v0.3.4
func (*Vless) ProtoMessage ¶ added in v0.3.4
func (*Vless) ProtoMessage()
func (*Vless) ProtoReflect ¶ added in v0.3.4
func (x *Vless) 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"` // contains filtered or unexported fields }
func (*Websocket) Descriptor
deprecated
func (*Websocket) ProtoMessage ¶
func (*Websocket) ProtoMessage()
func (*Websocket) ProtoReflect ¶
func (x *Websocket) ProtoReflect() protoreflect.Message
type Wireguard ¶
type Wireguard struct { SecretKey string `protobuf:"bytes,1,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` Endpoint []string `protobuf:"bytes,2,rep,name=endpoint,proto3" json:"endpoint,omitempty"` Peers []*WireguardPeerConfig `protobuf:"bytes,3,rep,name=peers,proto3" json:"peers,omitempty"` Mtu int32 `protobuf:"varint,4,opt,name=mtu,proto3" json:"mtu,omitempty"` Reserved []byte `protobuf:"bytes,6,opt,name=reserved,proto3" json:"reserved,omitempty"` IdleTimeout int32 `protobuf:"varint,7,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"` // contains filtered or unexported fields }
func (*Wireguard) Descriptor
deprecated
func (*Wireguard) GetEndpoint ¶
func (*Wireguard) GetIdleTimeout ¶ added in v0.3.4
func (*Wireguard) GetPeers ¶
func (x *Wireguard) GetPeers() []*WireguardPeerConfig
func (*Wireguard) GetReserved ¶
func (*Wireguard) GetSecretKey ¶
func (*Wireguard) ProtoMessage ¶
func (*Wireguard) ProtoMessage()
func (*Wireguard) ProtoReflect ¶
func (x *Wireguard) ProtoReflect() protoreflect.Message
type WireguardPeerConfig ¶
type WireguardPeerConfig struct { PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` KeepAlive int32 `protobuf:"varint,4,opt,name=keep_alive,json=keepAlive,proto3" json:"keep_alive,omitempty"` AllowedIps []string `protobuf:"bytes,5,rep,name=allowed_ips,json=allowedIps,proto3" json:"allowed_ips,omitempty"` // contains filtered or unexported fields }
func (*WireguardPeerConfig) Descriptor
deprecated
func (*WireguardPeerConfig) Descriptor() ([]byte, []int)
Deprecated: Use WireguardPeerConfig.ProtoReflect.Descriptor instead.
func (*WireguardPeerConfig) GetAllowedIps ¶
func (x *WireguardPeerConfig) GetAllowedIps() []string
func (*WireguardPeerConfig) GetEndpoint ¶
func (x *WireguardPeerConfig) GetEndpoint() string
func (*WireguardPeerConfig) GetKeepAlive ¶
func (x *WireguardPeerConfig) GetKeepAlive() int32
func (*WireguardPeerConfig) GetPreSharedKey ¶
func (x *WireguardPeerConfig) GetPreSharedKey() string
func (*WireguardPeerConfig) GetPublicKey ¶
func (x *WireguardPeerConfig) GetPublicKey() string
func (*WireguardPeerConfig) ProtoMessage ¶
func (*WireguardPeerConfig) ProtoMessage()
func (*WireguardPeerConfig) ProtoReflect ¶
func (x *WireguardPeerConfig) ProtoReflect() protoreflect.Message
func (*WireguardPeerConfig) Reset ¶
func (x *WireguardPeerConfig) Reset()
func (*WireguardPeerConfig) String ¶
func (x *WireguardPeerConfig) String() string
type Yuubinsya ¶
type Yuubinsya struct { Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` TcpEncrypt bool `protobuf:"varint,4,opt,name=tcp_encrypt,proto3" json:"tcp_encrypt,omitempty"` UdpEncrypt bool `protobuf:"varint,5,opt,name=udp_encrypt,proto3" json:"udp_encrypt,omitempty"` UdpOverStream bool `protobuf:"varint,3,opt,name=udp_over_stream,proto3" json:"udp_over_stream,omitempty"` // contains filtered or unexported fields }
func (*Yuubinsya) Descriptor
deprecated
func (*Yuubinsya) GetPassword ¶
func (*Yuubinsya) GetTcpEncrypt ¶ added in v0.3.5
func (*Yuubinsya) GetUdpEncrypt ¶ added in v0.3.5
func (*Yuubinsya) GetUdpOverStream ¶ added in v0.3.3
func (*Yuubinsya) ProtoMessage ¶
func (*Yuubinsya) ProtoMessage()
func (*Yuubinsya) ProtoReflect ¶
func (x *Yuubinsya) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.