Documentation
¶
Index ¶
- Constants
- Variables
- func GetNetworkOneofValue(i *Inbound) proto.Message
- func GetProtocolOneofValue(i *Inbound) proto.Message
- func GetTransportOneofValue(i *Transport) proto.Message
- func Listen(config *Inbound, handler netapi.Handler) (netapi.Accepter, error)
- func Network(config proto.Message) (netapi.Listener, error)
- func ParseTLS(t *TlsConfig) (*tls.Config, error)
- func Protocols(lis netapi.Listener, config proto.Message, handler netapi.Handler) (netapi.Accepter, error)
- func RegisterNetwork[T proto.Message](wrap func(T) (netapi.Listener, error))
- func RegisterProtocol[T proto.Message](wrap func(T, netapi.Listener, netapi.Handler) (netapi.Accepter, error))
- func RegisterTransport[T proto.Message](wrap func(T, netapi.Listener) (netapi.Listener, error))
- func Transports(lis netapi.Listener, protocols []*Transport) (netapi.Listener, error)
- type Certificate
- func (x *Certificate) ClearCert()
- func (x *Certificate) ClearCertFilePath()
- func (x *Certificate) ClearKey()
- func (x *Certificate) ClearKeyFilePath()
- func (x *Certificate) GetCert() []byte
- func (x *Certificate) GetCertFilePath() string
- func (x *Certificate) GetKey() []byte
- func (x *Certificate) GetKeyFilePath() string
- func (x *Certificate) HasCert() bool
- func (x *Certificate) HasCertFilePath() bool
- func (x *Certificate) HasKey() bool
- func (x *Certificate) HasKeyFilePath() bool
- func (*Certificate) ProtoMessage()
- func (x *Certificate) ProtoReflect() protoreflect.Message
- func (x *Certificate) Reset()
- func (x *Certificate) SetCert(v []byte)
- func (x *Certificate) SetCertFilePath(v string)
- func (x *Certificate) SetKey(v []byte)
- func (x *Certificate) SetKeyFilePath(v string)
- func (x *Certificate) String() string
- func (c *Certificate) X509KeyPair() (tls.Certificate, error)
- type Certificate_builder
- type Empty
- type Empty_builder
- type Grpc
- type Grpc_builder
- type Http
- func (x *Http) ClearPassword()
- func (x *Http) ClearUsername()
- func (x *Http) GetPassword() string
- func (x *Http) GetUsername() string
- func (x *Http) HasPassword() bool
- func (x *Http) HasUsername() bool
- func (*Http) ProtoMessage()
- func (x *Http) ProtoReflect() protoreflect.Message
- func (x *Http) Reset()
- func (x *Http) SetPassword(v string)
- func (x *Http) SetUsername(v string)
- func (x *Http) String() string
- type Http2
- type Http2_builder
- type Http_builder
- type Inbound
- func (x *Inbound) ClearEmpty()
- func (x *Inbound) ClearEnabled()
- func (x *Inbound) ClearHttp()
- func (x *Inbound) ClearMix()
- func (x *Inbound) ClearName()
- func (x *Inbound) ClearNetwork()
- func (x *Inbound) ClearNone()
- func (x *Inbound) ClearProtocol()
- func (x *Inbound) ClearQuic()
- func (x *Inbound) ClearRedir()
- func (x *Inbound) ClearReverseHttp()
- func (x *Inbound) ClearReverseTcp()
- func (x *Inbound) ClearSocks4A()
- func (x *Inbound) ClearSocks5()
- func (x *Inbound) ClearTcpudp()
- func (x *Inbound) ClearTproxy()
- func (x *Inbound) ClearTun()
- func (x *Inbound) ClearYuubinsya()
- func (x *Inbound) GetEmpty() *Empty
- func (x *Inbound) GetEnabled() bool
- func (x *Inbound) GetHttp() *Http
- func (x *Inbound) GetMix() *Mixed
- func (x *Inbound) GetName() string
- func (x *Inbound) GetNone() *Empty
- func (x *Inbound) GetQuic() *Quic
- func (x *Inbound) GetRedir() *Redir
- func (x *Inbound) GetReverseHttp() *ReverseHttp
- func (x *Inbound) GetReverseTcp() *ReverseTcp
- func (x *Inbound) GetSocks4A() *Socks4A
- func (x *Inbound) GetSocks5() *Socks5
- func (x *Inbound) GetTcpudp() *Tcpudp
- func (x *Inbound) GetTproxy() *Tproxy
- func (x *Inbound) GetTransport() []*Transport
- func (x *Inbound) GetTun() *Tun
- func (x *Inbound) GetYuubinsya() *Yuubinsya
- func (x *Inbound) HasEmpty() bool
- func (x *Inbound) HasEnabled() bool
- func (x *Inbound) HasHttp() bool
- func (x *Inbound) HasMix() bool
- func (x *Inbound) HasName() bool
- func (x *Inbound) HasNetwork() bool
- func (x *Inbound) HasNone() bool
- func (x *Inbound) HasProtocol() bool
- func (x *Inbound) HasQuic() bool
- func (x *Inbound) HasRedir() bool
- func (x *Inbound) HasReverseHttp() bool
- func (x *Inbound) HasReverseTcp() bool
- func (x *Inbound) HasSocks4A() bool
- func (x *Inbound) HasSocks5() bool
- func (x *Inbound) HasTcpudp() bool
- func (x *Inbound) HasTproxy() bool
- func (x *Inbound) HasTun() bool
- func (x *Inbound) HasYuubinsya() bool
- func (*Inbound) ProtoMessage()
- func (x *Inbound) ProtoReflect() protoreflect.Message
- func (x *Inbound) Reset()
- func (x *Inbound) SetEmpty(v *Empty)
- func (x *Inbound) SetEnabled(v bool)
- func (x *Inbound) SetHttp(v *Http)
- func (x *Inbound) SetMix(v *Mixed)
- func (x *Inbound) SetName(v string)
- func (x *Inbound) SetNone(v *Empty)
- func (x *Inbound) SetQuic(v *Quic)
- func (x *Inbound) SetRedir(v *Redir)
- func (x *Inbound) SetReverseHttp(v *ReverseHttp)
- func (x *Inbound) SetReverseTcp(v *ReverseTcp)
- func (x *Inbound) SetSocks4A(v *Socks4A)
- func (x *Inbound) SetSocks5(v *Socks5)
- func (x *Inbound) SetTcpudp(v *Tcpudp)
- func (x *Inbound) SetTproxy(v *Tproxy)
- func (x *Inbound) SetTransport(v []*Transport)
- func (x *Inbound) SetTun(v *Tun)
- func (x *Inbound) SetYuubinsya(v *Yuubinsya)
- func (x *Inbound) String() string
- func (x *Inbound) WhichNetwork() case_Inbound_Network
- func (x *Inbound) WhichProtocol() case_Inbound_Protocol
- type InboundConfig
- func (x *InboundConfig) ClearHijackDns()
- func (x *InboundConfig) ClearHijackDnsFakeip()
- func (x *InboundConfig) ClearSniff()
- func (x *InboundConfig) GetHijackDns() bool
- func (x *InboundConfig) GetHijackDnsFakeip() bool
- func (x *InboundConfig) GetInbounds() map[string]*Inbound
- func (x *InboundConfig) GetSniff() *Sniff
- func (x *InboundConfig) HasHijackDns() bool
- func (x *InboundConfig) HasHijackDnsFakeip() bool
- func (x *InboundConfig) HasSniff() bool
- func (*InboundConfig) ProtoMessage()
- func (x *InboundConfig) ProtoReflect() protoreflect.Message
- func (x *InboundConfig) Reset()
- func (x *InboundConfig) SetHijackDns(v bool)
- func (x *InboundConfig) SetHijackDnsFakeip(v bool)
- func (x *InboundConfig) SetInbounds(v map[string]*Inbound)
- func (x *InboundConfig) SetSniff(v *Sniff)
- func (x *InboundConfig) String() string
- type InboundConfig_builder
- type Inbound_builder
- type Mixed
- func (x *Mixed) ClearPassword()
- func (x *Mixed) ClearUsername()
- func (x *Mixed) GetPassword() string
- func (x *Mixed) GetUsername() string
- func (x *Mixed) HasPassword() bool
- func (x *Mixed) HasUsername() bool
- func (*Mixed) ProtoMessage()
- func (x *Mixed) ProtoReflect() protoreflect.Message
- func (x *Mixed) Reset()
- func (x *Mixed) SetPassword(v string)
- func (x *Mixed) SetUsername(v string)
- func (x *Mixed) String() string
- type Mixed_builder
- type Mux
- type Mux_builder
- type Normal
- type Normal_builder
- type Quic
- func (x *Quic) ClearHost()
- func (x *Quic) ClearTls()
- func (x *Quic) GetHost() string
- func (x *Quic) GetTls() *TlsConfig
- func (x *Quic) HasHost() bool
- func (x *Quic) HasTls() bool
- func (*Quic) ProtoMessage()
- func (x *Quic) ProtoReflect() protoreflect.Message
- func (x *Quic) Reset()
- func (x *Quic) SetHost(v string)
- func (x *Quic) SetTls(v *TlsConfig)
- func (x *Quic) String() string
- type Quic_builder
- type Reality
- func (x *Reality) ClearDebug()
- func (x *Reality) ClearDest()
- func (x *Reality) ClearPrivateKey()
- func (x *Reality) GetDebug() bool
- func (x *Reality) GetDest() string
- func (x *Reality) GetPrivateKey() string
- func (x *Reality) GetServerName() []string
- func (x *Reality) GetShortId() []string
- func (x *Reality) HasDebug() bool
- func (x *Reality) HasDest() bool
- func (x *Reality) HasPrivateKey() bool
- func (*Reality) ProtoMessage()
- func (x *Reality) ProtoReflect() protoreflect.Message
- func (x *Reality) Reset()
- func (x *Reality) SetDebug(v bool)
- func (x *Reality) SetDest(v string)
- func (x *Reality) SetPrivateKey(v string)
- func (x *Reality) SetServerName(v []string)
- func (x *Reality) SetShortId(v []string)
- func (x *Reality) String() string
- type Reality_builder
- type Redir
- type Redir_builder
- type ReverseHttp
- func (x *ReverseHttp) ClearUrl()
- func (x *ReverseHttp) GetUrl() string
- func (x *ReverseHttp) HasUrl() bool
- func (*ReverseHttp) ProtoMessage()
- func (x *ReverseHttp) ProtoReflect() protoreflect.Message
- func (x *ReverseHttp) Reset()
- func (x *ReverseHttp) SetUrl(v string)
- func (x *ReverseHttp) String() string
- type ReverseHttp_builder
- type ReverseTcp
- func (x *ReverseTcp) ClearHost()
- func (x *ReverseTcp) GetHost() string
- func (x *ReverseTcp) HasHost() bool
- func (*ReverseTcp) ProtoMessage()
- func (x *ReverseTcp) ProtoReflect() protoreflect.Message
- func (x *ReverseTcp) Reset()
- func (x *ReverseTcp) SetHost(v string)
- func (x *ReverseTcp) String() string
- type ReverseTcp_builder
- type Route
- type Route_builder
- type Sniff
- type Sniff_builder
- type Socks4A
- type Socks4A_builder
- type Socks5
- func (x *Socks5) ClearPassword()
- func (x *Socks5) ClearUdp()
- func (x *Socks5) ClearUsername()
- func (x *Socks5) GetPassword() string
- func (x *Socks5) GetUdp() bool
- func (x *Socks5) GetUsername() string
- func (x *Socks5) HasPassword() bool
- func (x *Socks5) HasUdp() bool
- func (x *Socks5) HasUsername() bool
- func (*Socks5) ProtoMessage()
- func (x *Socks5) ProtoReflect() protoreflect.Message
- func (x *Socks5) Reset()
- func (x *Socks5) SetPassword(v string)
- func (x *Socks5) SetUdp(v bool)
- func (x *Socks5) SetUsername(v string)
- func (x *Socks5) String() string
- type Socks5_builder
- type TcpUdpControl
- type Tcpudp
- func (x *Tcpudp) ClearControl()
- func (x *Tcpudp) ClearHost()
- func (x *Tcpudp) GetControl() TcpUdpControl
- func (x *Tcpudp) GetHost() string
- func (x *Tcpudp) HasControl() bool
- func (x *Tcpudp) HasHost() bool
- func (*Tcpudp) ProtoMessage()
- func (x *Tcpudp) ProtoReflect() protoreflect.Message
- func (x *Tcpudp) Reset()
- func (x *Tcpudp) SetControl(v TcpUdpControl)
- func (x *Tcpudp) SetHost(v string)
- func (x *Tcpudp) String() string
- type Tcpudp_builder
- type Tls
- type TlsAuto
- func (x *TlsAuto) ClearCaCert()
- func (x *TlsAuto) ClearCaKey()
- func (x *TlsAuto) GetCaCert() []byte
- func (x *TlsAuto) GetCaKey() []byte
- func (x *TlsAuto) GetNextProtos() []string
- func (x *TlsAuto) GetServernames() []string
- func (x *TlsAuto) HasCaCert() bool
- func (x *TlsAuto) HasCaKey() bool
- func (*TlsAuto) ProtoMessage()
- func (x *TlsAuto) ProtoReflect() protoreflect.Message
- func (x *TlsAuto) Reset()
- func (x *TlsAuto) SetCaCert(v []byte)
- func (x *TlsAuto) SetCaKey(v []byte)
- func (x *TlsAuto) SetNextProtos(v []string)
- func (x *TlsAuto) SetServernames(v []string)
- func (x *TlsAuto) String() string
- type TlsAuto_builder
- type TlsConfig
- func (x *TlsConfig) GetCertificates() []*Certificate
- func (x *TlsConfig) GetNextProtos() []string
- func (x *TlsConfig) GetServerNameCertificate() map[string]*Certificate
- func (t *TlsConfig) ParseCertificates() []tls.Certificate
- func (t *TlsConfig) ParseServerNameCertificate() *trie.Trie[*tls.Certificate]
- func (*TlsConfig) ProtoMessage()
- func (x *TlsConfig) ProtoReflect() protoreflect.Message
- func (x *TlsConfig) Reset()
- func (x *TlsConfig) SetCertificates(v []*Certificate)
- func (x *TlsConfig) SetNextProtos(v []string)
- func (x *TlsConfig) SetServerNameCertificate(v map[string]*Certificate)
- func (x *TlsConfig) String() string
- type TlsConfigManager
- type TlsConfig_builder
- type Tls_builder
- type Tproxy
- func (x *Tproxy) ClearDnsHijacking()
- func (x *Tproxy) ClearForceFakeip()
- func (x *Tproxy) ClearHost()
- func (x *Tproxy) GetDnsHijacking() bool
- func (x *Tproxy) GetForceFakeip() bool
- func (x *Tproxy) GetHost() string
- func (x *Tproxy) HasDnsHijacking() bool
- func (x *Tproxy) HasForceFakeip() bool
- func (x *Tproxy) HasHost() bool
- func (*Tproxy) ProtoMessage()
- func (x *Tproxy) ProtoReflect() protoreflect.Message
- func (x *Tproxy) Reset()
- func (x *Tproxy) SetDnsHijacking(v bool)
- func (x *Tproxy) SetForceFakeip(v bool)
- func (x *Tproxy) SetHost(v string)
- func (x *Tproxy) String() string
- type Tproxy_builder
- type Transport
- func (x *Transport) ClearGrpc()
- func (x *Transport) ClearHttp2()
- func (x *Transport) ClearMux()
- func (x *Transport) ClearNormal()
- func (x *Transport) ClearReality()
- func (x *Transport) ClearTls()
- func (x *Transport) ClearTlsAuto()
- func (x *Transport) ClearTransport()
- func (x *Transport) ClearWebsocket()
- func (x *Transport) GetGrpc() *Grpc
- func (x *Transport) GetHttp2() *Http2
- func (x *Transport) GetMux() *Mux
- func (x *Transport) GetNormal() *Normal
- func (x *Transport) GetReality() *Reality
- func (x *Transport) GetTls() *Tls
- func (x *Transport) GetTlsAuto() *TlsAuto
- func (x *Transport) GetWebsocket() *Websocket
- func (x *Transport) HasGrpc() bool
- func (x *Transport) HasHttp2() bool
- func (x *Transport) HasMux() bool
- func (x *Transport) HasNormal() bool
- func (x *Transport) HasReality() bool
- func (x *Transport) HasTls() bool
- func (x *Transport) HasTlsAuto() bool
- func (x *Transport) HasTransport() bool
- func (x *Transport) HasWebsocket() bool
- func (*Transport) ProtoMessage()
- func (x *Transport) ProtoReflect() protoreflect.Message
- func (x *Transport) Reset()
- func (x *Transport) SetGrpc(v *Grpc)
- func (x *Transport) SetHttp2(v *Http2)
- func (x *Transport) SetMux(v *Mux)
- func (x *Transport) SetNormal(v *Normal)
- func (x *Transport) SetReality(v *Reality)
- func (x *Transport) SetTls(v *Tls)
- func (x *Transport) SetTlsAuto(v *TlsAuto)
- func (x *Transport) SetWebsocket(v *Websocket)
- func (x *Transport) String() string
- func (x *Transport) WhichTransport() case_Transport_Transport
- type Transport_builder
- type Tun
- func (x *Tun) ClearDriver()
- func (x *Tun) ClearForceFakeip()
- func (x *Tun) ClearMtu()
- func (x *Tun) ClearName()
- func (x *Tun) ClearPortal()
- func (x *Tun) ClearPortalV6()
- func (x *Tun) ClearRoute()
- func (x *Tun) ClearSkipMulticast()
- func (x *Tun) GetDriver() TunEndpointDriver
- func (x *Tun) GetForceFakeip() bool
- func (x *Tun) GetMtu() int32
- func (x *Tun) GetName() string
- func (x *Tun) GetPortal() string
- func (x *Tun) GetPortalV6() string
- func (x *Tun) GetPostDown() []string
- func (x *Tun) GetPostUp() []string
- func (x *Tun) GetRoute() *Route
- func (x *Tun) GetSkipMulticast() bool
- func (x *Tun) HasDriver() bool
- func (x *Tun) HasForceFakeip() bool
- func (x *Tun) HasMtu() bool
- func (x *Tun) HasName() bool
- func (x *Tun) HasPortal() bool
- func (x *Tun) HasPortalV6() bool
- func (x *Tun) HasRoute() bool
- func (x *Tun) HasSkipMulticast() bool
- func (*Tun) ProtoMessage()
- func (x *Tun) ProtoReflect() protoreflect.Message
- func (x *Tun) Reset()
- func (x *Tun) SetDriver(v TunEndpointDriver)
- func (x *Tun) SetForceFakeip(v bool)
- func (x *Tun) SetMtu(v int32)
- func (x *Tun) SetName(v string)
- func (x *Tun) SetPortal(v string)
- func (x *Tun) SetPortalV6(v string)
- func (x *Tun) SetPostDown(v []string)
- func (x *Tun) SetPostUp(v []string)
- func (x *Tun) SetRoute(v *Route)
- func (x *Tun) SetSkipMulticast(v bool)
- func (x *Tun) String() string
- type TunEndpointDriver
- type Tun_builder
- type Websocket
- type Websocket_builder
- type Yuubinsya
- func (x *Yuubinsya) ClearPassword()
- func (x *Yuubinsya) ClearTcpEncrypt()
- func (x *Yuubinsya) ClearUdpEncrypt()
- func (x *Yuubinsya) GetPassword() string
- func (x *Yuubinsya) GetTcpEncrypt() bool
- func (x *Yuubinsya) GetUdpEncrypt() bool
- func (x *Yuubinsya) HasPassword() bool
- func (x *Yuubinsya) HasTcpEncrypt() bool
- func (x *Yuubinsya) HasUdpEncrypt() bool
- func (*Yuubinsya) ProtoMessage()
- func (x *Yuubinsya) ProtoReflect() protoreflect.Message
- func (x *Yuubinsya) Reset()
- func (x *Yuubinsya) SetPassword(v string)
- func (x *Yuubinsya) SetTcpEncrypt(v bool)
- func (x *Yuubinsya) SetUdpEncrypt(v bool)
- func (x *Yuubinsya) String() string
- type Yuubinsya_builder
Constants ¶
View Source
const Inbound_Empty_case case_Inbound_Network = 21
View Source
const Inbound_Http_case case_Inbound_Protocol = 3
View Source
const Inbound_Mix_case case_Inbound_Protocol = 8
View Source
const Inbound_Network_not_set_case case_Inbound_Network = 0
View Source
const Inbound_None_case case_Inbound_Protocol = 24
View Source
const Inbound_Protocol_not_set_case case_Inbound_Protocol = 0
View Source
const Inbound_Quic_case case_Inbound_Network = 16
View Source
const Inbound_Redir_case case_Inbound_Protocol = 18
View Source
const Inbound_ReverseHttp_case case_Inbound_Protocol = 22
View Source
const Inbound_ReverseTcp_case case_Inbound_Protocol = 23
View Source
const Inbound_Socks4A_case case_Inbound_Protocol = 9
View Source
const Inbound_Socks5_case case_Inbound_Protocol = 4
View Source
const Inbound_Tcpudp_case case_Inbound_Network = 15
View Source
const Inbound_Tproxy_case case_Inbound_Protocol = 20
View Source
const Inbound_Tun_case case_Inbound_Protocol = 19
View Source
const Inbound_Yuubinsya_case case_Inbound_Protocol = 7
View Source
const Transport_Grpc_case case_Transport_Transport = 11
View Source
const Transport_Http2_case case_Transport_Transport = 5
View Source
const Transport_Mux_case case_Transport_Transport = 2
View Source
const Transport_Normal_case case_Transport_Transport = 12
View Source
const Transport_Reality_case case_Transport_Transport = 10
View Source
const Transport_TlsAuto_case case_Transport_Transport = 13
View Source
const Transport_Tls_case case_Transport_Transport = 1
View Source
const Transport_Transport_not_set_case case_Transport_Transport = 0
View Source
const Transport_Websocket_case case_Transport_Transport = 6
Variables ¶
View Source
var ( TcpUdpControl_name = map[int32]string{ 0: "tcp_udp_control_all", 1: "disable_tcp", 2: "disable_udp", } TcpUdpControl_value = map[string]int32{ "tcp_udp_control_all": 0, "disable_tcp": 1, "disable_udp": 2, } )
Enum value maps for TcpUdpControl.
View Source
var ( TunEndpointDriver_name = map[int32]string{ 0: "fdbased", 1: "channel", 2: "system_gvisor", } TunEndpointDriver_value = map[string]int32{ "fdbased": 0, "channel": 1, "system_gvisor": 2, } )
Enum value maps for TunEndpointDriver.
View Source
var File_config_listener_listener_proto protoreflect.FileDescriptor
Functions ¶
func GetNetworkOneofValue ¶ added in v0.3.8
func GetProtocolOneofValue ¶ added in v0.3.8
func GetTransportOneofValue ¶ added in v0.3.8
func RegisterNetwork ¶ added in v0.3.3
func RegisterProtocol ¶
func RegisterTransport ¶ added in v0.3.3
Types ¶
type Certificate ¶
type Certificate struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Certificate) ClearCert ¶ added in v0.3.8
func (x *Certificate) ClearCert()
func (*Certificate) ClearCertFilePath ¶ added in v0.3.8
func (x *Certificate) ClearCertFilePath()
func (*Certificate) ClearKey ¶ added in v0.3.8
func (x *Certificate) ClearKey()
func (*Certificate) ClearKeyFilePath ¶ added in v0.3.8
func (x *Certificate) ClearKeyFilePath()
func (*Certificate) GetCert ¶
func (x *Certificate) GetCert() []byte
func (*Certificate) GetCertFilePath ¶
func (x *Certificate) GetCertFilePath() string
func (*Certificate) GetKey ¶
func (x *Certificate) GetKey() []byte
func (*Certificate) GetKeyFilePath ¶
func (x *Certificate) GetKeyFilePath() string
func (*Certificate) HasCert ¶ added in v0.3.8
func (x *Certificate) HasCert() bool
func (*Certificate) HasCertFilePath ¶ added in v0.3.8
func (x *Certificate) HasCertFilePath() bool
func (*Certificate) HasKey ¶ added in v0.3.8
func (x *Certificate) HasKey() bool
func (*Certificate) HasKeyFilePath ¶ added in v0.3.8
func (x *Certificate) HasKeyFilePath() bool
func (*Certificate) ProtoMessage ¶
func (*Certificate) ProtoMessage()
func (*Certificate) ProtoReflect ¶
func (x *Certificate) ProtoReflect() protoreflect.Message
func (*Certificate) Reset ¶
func (x *Certificate) Reset()
func (*Certificate) SetCert ¶ added in v0.3.8
func (x *Certificate) SetCert(v []byte)
func (*Certificate) SetCertFilePath ¶ added in v0.3.8
func (x *Certificate) SetCertFilePath(v string)
func (*Certificate) SetKey ¶ added in v0.3.8
func (x *Certificate) SetKey(v []byte)
func (*Certificate) SetKeyFilePath ¶ added in v0.3.8
func (x *Certificate) SetKeyFilePath(v string)
func (*Certificate) String ¶
func (x *Certificate) String() string
func (*Certificate) X509KeyPair ¶
func (c *Certificate) X509KeyPair() (tls.Certificate, error)
type Certificate_builder ¶ added in v0.3.8
type Certificate_builder struct { Cert []byte Key []byte CertFilePath *string KeyFilePath *string // contains filtered or unexported fields }
func (Certificate_builder) Build ¶ added in v0.3.8
func (b0 Certificate_builder) Build() *Certificate
type Empty ¶ added in v0.3.3
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) ProtoMessage ¶ added in v0.3.3
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶ added in v0.3.3
func (x *Empty) ProtoReflect() protoreflect.Message
type Empty_builder ¶ added in v0.3.8
type Empty_builder struct {
// contains filtered or unexported fields
}
func (Empty_builder) Build ¶ added in v0.3.8
func (b0 Empty_builder) Build() *Empty
type Grpc ¶
type Grpc struct {
// contains filtered or unexported fields
}
func (*Grpc) ProtoMessage ¶
func (*Grpc) ProtoMessage()
func (*Grpc) ProtoReflect ¶
func (x *Grpc) ProtoReflect() protoreflect.Message
type Grpc_builder ¶ added in v0.3.8
type Grpc_builder struct {
// contains filtered or unexported fields
}
func (Grpc_builder) Build ¶ added in v0.3.8
func (b0 Grpc_builder) Build() *Grpc
type Http ¶
type Http struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Http) ClearPassword ¶ added in v0.3.8
func (x *Http) ClearPassword()
func (*Http) ClearUsername ¶ added in v0.3.8
func (x *Http) ClearUsername()
func (*Http) GetPassword ¶
func (*Http) GetUsername ¶
func (*Http) HasPassword ¶ added in v0.3.8
func (*Http) HasUsername ¶ added in v0.3.8
func (*Http) ProtoMessage ¶
func (*Http) ProtoMessage()
func (*Http) ProtoReflect ¶
func (x *Http) ProtoReflect() protoreflect.Message
func (*Http) SetPassword ¶ added in v0.3.8
func (*Http) SetUsername ¶ added in v0.3.8
type Http2 ¶
type Http2 struct {
// contains filtered or unexported fields
}
func (*Http2) ProtoMessage ¶
func (*Http2) ProtoMessage()
func (*Http2) ProtoReflect ¶
func (x *Http2) ProtoReflect() protoreflect.Message
type Http2_builder ¶ added in v0.3.8
type Http2_builder struct {
// contains filtered or unexported fields
}
func (Http2_builder) Build ¶ added in v0.3.8
func (b0 Http2_builder) Build() *Http2
type Http_builder ¶ added in v0.3.8
type Http_builder struct { Username *string Password *string // contains filtered or unexported fields }
func (Http_builder) Build ¶ added in v0.3.8
func (b0 Http_builder) Build() *Http
type Inbound ¶ added in v0.3.3
type Inbound struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Inbound) ClearEmpty ¶ added in v0.3.8
func (x *Inbound) ClearEmpty()
func (*Inbound) ClearEnabled ¶ added in v0.3.8
func (x *Inbound) ClearEnabled()
func (*Inbound) ClearNetwork ¶ added in v0.3.8
func (x *Inbound) ClearNetwork()
func (*Inbound) ClearProtocol ¶ added in v0.3.8
func (x *Inbound) ClearProtocol()
func (*Inbound) ClearRedir ¶ added in v0.3.8
func (x *Inbound) ClearRedir()
func (*Inbound) ClearReverseHttp ¶ added in v0.3.8
func (x *Inbound) ClearReverseHttp()
func (*Inbound) ClearReverseTcp ¶ added in v0.3.8
func (x *Inbound) ClearReverseTcp()
func (*Inbound) ClearSocks4A ¶ added in v0.3.8
func (x *Inbound) ClearSocks4A()
func (*Inbound) ClearSocks5 ¶ added in v0.3.8
func (x *Inbound) ClearSocks5()
func (*Inbound) ClearTcpudp ¶ added in v0.3.8
func (x *Inbound) ClearTcpudp()
func (*Inbound) ClearTproxy ¶ added in v0.3.8
func (x *Inbound) ClearTproxy()
func (*Inbound) ClearYuubinsya ¶ added in v0.3.8
func (x *Inbound) ClearYuubinsya()
func (*Inbound) GetEnabled ¶ added in v0.3.3
func (*Inbound) GetReverseHttp ¶ added in v0.3.8
func (x *Inbound) GetReverseHttp() *ReverseHttp
func (*Inbound) GetReverseTcp ¶ added in v0.3.8
func (x *Inbound) GetReverseTcp() *ReverseTcp
func (*Inbound) GetSocks4A ¶ added in v0.3.3
func (*Inbound) GetTransport ¶ added in v0.3.3
func (*Inbound) GetYuubinsya ¶ added in v0.3.3
func (*Inbound) HasEnabled ¶ added in v0.3.8
func (*Inbound) HasNetwork ¶ added in v0.3.8
func (*Inbound) HasProtocol ¶ added in v0.3.8
func (*Inbound) HasReverseHttp ¶ added in v0.3.8
func (*Inbound) HasReverseTcp ¶ added in v0.3.8
func (*Inbound) HasSocks4A ¶ added in v0.3.8
func (*Inbound) HasYuubinsya ¶ added in v0.3.8
func (*Inbound) ProtoMessage ¶ added in v0.3.3
func (*Inbound) ProtoMessage()
func (*Inbound) ProtoReflect ¶ added in v0.3.3
func (x *Inbound) ProtoReflect() protoreflect.Message
func (*Inbound) SetEnabled ¶ added in v0.3.8
func (*Inbound) SetReverseHttp ¶ added in v0.3.8
func (x *Inbound) SetReverseHttp(v *ReverseHttp)
func (*Inbound) SetReverseTcp ¶ added in v0.3.8
func (x *Inbound) SetReverseTcp(v *ReverseTcp)
func (*Inbound) SetSocks4A ¶ added in v0.3.8
func (*Inbound) SetTransport ¶ added in v0.3.8
func (*Inbound) SetYuubinsya ¶ added in v0.3.8
func (*Inbound) WhichNetwork ¶ added in v0.3.8
func (x *Inbound) WhichNetwork() case_Inbound_Network
func (*Inbound) WhichProtocol ¶ added in v0.3.8
func (x *Inbound) WhichProtocol() case_Inbound_Protocol
type InboundConfig ¶
type InboundConfig struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*InboundConfig) ClearHijackDns ¶ added in v0.3.8
func (x *InboundConfig) ClearHijackDns()
func (*InboundConfig) ClearHijackDnsFakeip ¶ added in v0.3.8
func (x *InboundConfig) ClearHijackDnsFakeip()
func (*InboundConfig) ClearSniff ¶ added in v0.3.8
func (x *InboundConfig) ClearSniff()
func (*InboundConfig) GetHijackDns ¶ added in v0.3.3
func (x *InboundConfig) GetHijackDns() bool
func (*InboundConfig) GetHijackDnsFakeip ¶ added in v0.3.3
func (x *InboundConfig) GetHijackDnsFakeip() bool
func (*InboundConfig) GetInbounds ¶ added in v0.3.3
func (x *InboundConfig) GetInbounds() map[string]*Inbound
func (*InboundConfig) GetSniff ¶ added in v0.3.6
func (x *InboundConfig) GetSniff() *Sniff
func (*InboundConfig) HasHijackDns ¶ added in v0.3.8
func (x *InboundConfig) HasHijackDns() bool
func (*InboundConfig) HasHijackDnsFakeip ¶ added in v0.3.8
func (x *InboundConfig) HasHijackDnsFakeip() bool
func (*InboundConfig) HasSniff ¶ added in v0.3.8
func (x *InboundConfig) HasSniff() bool
func (*InboundConfig) ProtoMessage ¶
func (*InboundConfig) ProtoMessage()
func (*InboundConfig) ProtoReflect ¶
func (x *InboundConfig) ProtoReflect() protoreflect.Message
func (*InboundConfig) Reset ¶
func (x *InboundConfig) Reset()
func (*InboundConfig) SetHijackDns ¶ added in v0.3.8
func (x *InboundConfig) SetHijackDns(v bool)
func (*InboundConfig) SetHijackDnsFakeip ¶ added in v0.3.8
func (x *InboundConfig) SetHijackDnsFakeip(v bool)
func (*InboundConfig) SetInbounds ¶ added in v0.3.8
func (x *InboundConfig) SetInbounds(v map[string]*Inbound)
func (*InboundConfig) SetSniff ¶ added in v0.3.8
func (x *InboundConfig) SetSniff(v *Sniff)
func (*InboundConfig) String ¶
func (x *InboundConfig) String() string
type InboundConfig_builder ¶ added in v0.3.8
type InboundConfig_builder struct { HijackDns *bool HijackDnsFakeip *bool Inbounds map[string]*Inbound Sniff *Sniff // contains filtered or unexported fields }
func (InboundConfig_builder) Build ¶ added in v0.3.8
func (b0 InboundConfig_builder) Build() *InboundConfig
type Inbound_builder ¶ added in v0.3.8
type Inbound_builder struct { Name *string Enabled *bool // Fields of oneof xxx_hidden_Network: Empty *Empty Tcpudp *Tcpudp Quic *Quic // -- end of xxx_hidden_Network Transport []*Transport // Fields of oneof xxx_hidden_Protocol: Http *Http Socks5 *Socks5 Yuubinsya *Yuubinsya Mix *Mixed Socks4A *Socks4A Tproxy *Tproxy Redir *Redir Tun *Tun ReverseHttp *ReverseHttp ReverseTcp *ReverseTcp None *Empty // contains filtered or unexported fields }
func (Inbound_builder) Build ¶ added in v0.3.8
func (b0 Inbound_builder) Build() *Inbound
type Mixed ¶
type Mixed struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Mixed) ClearPassword ¶ added in v0.3.8
func (x *Mixed) ClearPassword()
func (*Mixed) ClearUsername ¶ added in v0.3.8
func (x *Mixed) ClearUsername()
func (*Mixed) GetPassword ¶
func (*Mixed) GetUsername ¶
func (*Mixed) HasPassword ¶ added in v0.3.8
func (*Mixed) HasUsername ¶ added in v0.3.8
func (*Mixed) ProtoMessage ¶
func (*Mixed) ProtoMessage()
func (*Mixed) ProtoReflect ¶
func (x *Mixed) ProtoReflect() protoreflect.Message
func (*Mixed) SetPassword ¶ added in v0.3.8
func (*Mixed) SetUsername ¶ added in v0.3.8
type Mixed_builder ¶ added in v0.3.8
type Mixed_builder struct { Username *string Password *string // contains filtered or unexported fields }
func (Mixed_builder) Build ¶ added in v0.3.8
func (b0 Mixed_builder) Build() *Mixed
type Mux ¶ added in v0.3.3
type Mux struct {
// contains filtered or unexported fields
}
func (*Mux) ProtoMessage ¶ added in v0.3.3
func (*Mux) ProtoMessage()
func (*Mux) ProtoReflect ¶ added in v0.3.3
func (x *Mux) ProtoReflect() protoreflect.Message
type Mux_builder ¶ added in v0.3.8
type Mux_builder struct {
// contains filtered or unexported fields
}
func (Mux_builder) Build ¶ added in v0.3.8
func (b0 Mux_builder) Build() *Mux
type Normal ¶
type Normal struct {
// contains filtered or unexported fields
}
func (*Normal) ProtoMessage ¶
func (*Normal) ProtoMessage()
func (*Normal) ProtoReflect ¶
func (x *Normal) ProtoReflect() protoreflect.Message
type Normal_builder ¶ added in v0.3.8
type Normal_builder struct {
// contains filtered or unexported fields
}
func (Normal_builder) Build ¶ added in v0.3.8
func (b0 Normal_builder) Build() *Normal
type Quic ¶
type Quic struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Quic) ProtoMessage ¶
func (*Quic) ProtoMessage()
func (*Quic) ProtoReflect ¶
func (x *Quic) ProtoReflect() protoreflect.Message
type Quic_builder ¶ added in v0.3.8
func (Quic_builder) Build ¶ added in v0.3.8
func (b0 Quic_builder) Build() *Quic
type Reality ¶
type Reality struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Reality) ClearDebug ¶ added in v0.3.8
func (x *Reality) ClearDebug()
func (*Reality) ClearPrivateKey ¶ added in v0.3.8
func (x *Reality) ClearPrivateKey()
func (*Reality) GetPrivateKey ¶
func (*Reality) GetServerName ¶
func (*Reality) GetShortId ¶
func (*Reality) HasPrivateKey ¶ added in v0.3.8
func (*Reality) ProtoMessage ¶
func (*Reality) ProtoMessage()
func (*Reality) ProtoReflect ¶
func (x *Reality) ProtoReflect() protoreflect.Message
func (*Reality) SetPrivateKey ¶ added in v0.3.8
func (*Reality) SetServerName ¶ added in v0.3.8
func (*Reality) SetShortId ¶ added in v0.3.8
type Reality_builder ¶ added in v0.3.8
type Reality_builder struct { ShortId []string ServerName []string Dest *string PrivateKey *string Debug *bool // contains filtered or unexported fields }
func (Reality_builder) Build ¶ added in v0.3.8
func (b0 Reality_builder) Build() *Reality
type Redir ¶
type Redir struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Redir) ProtoMessage ¶
func (*Redir) ProtoMessage()
func (*Redir) ProtoReflect ¶
func (x *Redir) ProtoReflect() protoreflect.Message
type Redir_builder ¶ added in v0.3.8
type Redir_builder struct { Host *string // contains filtered or unexported fields }
func (Redir_builder) Build ¶ added in v0.3.8
func (b0 Redir_builder) Build() *Redir
type ReverseHttp ¶ added in v0.3.8
type ReverseHttp struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*ReverseHttp) ClearUrl ¶ added in v0.3.8
func (x *ReverseHttp) ClearUrl()
func (*ReverseHttp) GetUrl ¶ added in v0.3.8
func (x *ReverseHttp) GetUrl() string
func (*ReverseHttp) HasUrl ¶ added in v0.3.8
func (x *ReverseHttp) HasUrl() bool
func (*ReverseHttp) ProtoMessage ¶ added in v0.3.8
func (*ReverseHttp) ProtoMessage()
func (*ReverseHttp) ProtoReflect ¶ added in v0.3.8
func (x *ReverseHttp) ProtoReflect() protoreflect.Message
func (*ReverseHttp) Reset ¶ added in v0.3.8
func (x *ReverseHttp) Reset()
func (*ReverseHttp) SetUrl ¶ added in v0.3.8
func (x *ReverseHttp) SetUrl(v string)
func (*ReverseHttp) String ¶ added in v0.3.8
func (x *ReverseHttp) String() string
type ReverseHttp_builder ¶ added in v0.3.8
type ReverseHttp_builder struct { Url *string // contains filtered or unexported fields }
func (ReverseHttp_builder) Build ¶ added in v0.3.8
func (b0 ReverseHttp_builder) Build() *ReverseHttp
type ReverseTcp ¶ added in v0.3.8
type ReverseTcp struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*ReverseTcp) ClearHost ¶ added in v0.3.8
func (x *ReverseTcp) ClearHost()
func (*ReverseTcp) GetHost ¶ added in v0.3.8
func (x *ReverseTcp) GetHost() string
func (*ReverseTcp) HasHost ¶ added in v0.3.8
func (x *ReverseTcp) HasHost() bool
func (*ReverseTcp) ProtoMessage ¶ added in v0.3.8
func (*ReverseTcp) ProtoMessage()
func (*ReverseTcp) ProtoReflect ¶ added in v0.3.8
func (x *ReverseTcp) ProtoReflect() protoreflect.Message
func (*ReverseTcp) Reset ¶ added in v0.3.8
func (x *ReverseTcp) Reset()
func (*ReverseTcp) SetHost ¶ added in v0.3.8
func (x *ReverseTcp) SetHost(v string)
func (*ReverseTcp) String ¶ added in v0.3.8
func (x *ReverseTcp) String() string
type ReverseTcp_builder ¶ added in v0.3.8
type ReverseTcp_builder struct { Host *string // contains filtered or unexported fields }
func (ReverseTcp_builder) Build ¶ added in v0.3.8
func (b0 ReverseTcp_builder) Build() *ReverseTcp
type Route ¶ added in v0.3.4
type Route struct {
// contains filtered or unexported fields
}
func (*Route) GetExcludes ¶ added in v0.3.4
func (*Route) ProtoMessage ¶ added in v0.3.4
func (*Route) ProtoMessage()
func (*Route) ProtoReflect ¶ added in v0.3.4
func (x *Route) ProtoReflect() protoreflect.Message
func (*Route) SetExcludes ¶ added in v0.3.8
type Route_builder ¶ added in v0.3.8
type Route_builder struct { Routes []string Excludes []string // contains filtered or unexported fields }
func (Route_builder) Build ¶ added in v0.3.8
func (b0 Route_builder) Build() *Route
type Sniff ¶ added in v0.3.6
type Sniff struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Sniff) ClearEnabled ¶ added in v0.3.8
func (x *Sniff) ClearEnabled()
func (*Sniff) GetEnabled ¶ added in v0.3.6
func (*Sniff) HasEnabled ¶ added in v0.3.8
func (*Sniff) ProtoMessage ¶ added in v0.3.6
func (*Sniff) ProtoMessage()
func (*Sniff) ProtoReflect ¶ added in v0.3.6
func (x *Sniff) ProtoReflect() protoreflect.Message
func (*Sniff) SetEnabled ¶ added in v0.3.8
type Sniff_builder ¶ added in v0.3.8
type Sniff_builder struct { Enabled *bool // contains filtered or unexported fields }
func (Sniff_builder) Build ¶ added in v0.3.8
func (b0 Sniff_builder) Build() *Sniff
type Socks4A ¶
type Socks4A struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Socks4A) ClearUsername ¶ added in v0.3.8
func (x *Socks4A) ClearUsername()
func (*Socks4A) GetUsername ¶
func (*Socks4A) HasUsername ¶ added in v0.3.8
func (*Socks4A) ProtoMessage ¶
func (*Socks4A) ProtoMessage()
func (*Socks4A) ProtoReflect ¶
func (x *Socks4A) ProtoReflect() protoreflect.Message
func (*Socks4A) SetUsername ¶ added in v0.3.8
type Socks4A_builder ¶ added in v0.3.8
type Socks4A_builder struct { Username *string // contains filtered or unexported fields }
func (Socks4A_builder) Build ¶ added in v0.3.8
func (b0 Socks4A_builder) Build() *Socks4A
type Socks5 ¶
type Socks5 struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Socks5) ClearPassword ¶ added in v0.3.8
func (x *Socks5) ClearPassword()
func (*Socks5) ClearUsername ¶ added in v0.3.8
func (x *Socks5) ClearUsername()
func (*Socks5) GetPassword ¶
func (*Socks5) GetUsername ¶
func (*Socks5) HasPassword ¶ added in v0.3.8
func (*Socks5) HasUsername ¶ added in v0.3.8
func (*Socks5) ProtoMessage ¶
func (*Socks5) ProtoMessage()
func (*Socks5) ProtoReflect ¶
func (x *Socks5) ProtoReflect() protoreflect.Message
func (*Socks5) SetPassword ¶ added in v0.3.8
func (*Socks5) SetUsername ¶ added in v0.3.8
type Socks5_builder ¶ added in v0.3.8
type Socks5_builder struct { Username *string Password *string Udp *bool // contains filtered or unexported fields }
func (Socks5_builder) Build ¶ added in v0.3.8
func (b0 Socks5_builder) Build() *Socks5
type TcpUdpControl ¶ added in v0.3.4
type TcpUdpControl int32
const ( TcpUdpControl_tcp_udp_control_all TcpUdpControl = 0 TcpUdpControl_disable_tcp TcpUdpControl = 1 TcpUdpControl_disable_udp TcpUdpControl = 2 )
func (TcpUdpControl) Descriptor ¶ added in v0.3.4
func (TcpUdpControl) Descriptor() protoreflect.EnumDescriptor
func (TcpUdpControl) Enum ¶ added in v0.3.4
func (x TcpUdpControl) Enum() *TcpUdpControl
func (TcpUdpControl) Number ¶ added in v0.3.4
func (x TcpUdpControl) Number() protoreflect.EnumNumber
func (TcpUdpControl) String ¶ added in v0.3.4
func (x TcpUdpControl) String() string
func (TcpUdpControl) Type ¶ added in v0.3.4
func (TcpUdpControl) Type() protoreflect.EnumType
type Tcpudp ¶ added in v0.3.3
type Tcpudp struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Tcpudp) ClearControl ¶ added in v0.3.8
func (x *Tcpudp) ClearControl()
func (*Tcpudp) GetControl ¶ added in v0.3.4
func (x *Tcpudp) GetControl() TcpUdpControl
func (*Tcpudp) HasControl ¶ added in v0.3.8
func (*Tcpudp) ProtoMessage ¶ added in v0.3.3
func (*Tcpudp) ProtoMessage()
func (*Tcpudp) ProtoReflect ¶ added in v0.3.3
func (x *Tcpudp) ProtoReflect() protoreflect.Message
func (*Tcpudp) SetControl ¶ added in v0.3.8
func (x *Tcpudp) SetControl(v TcpUdpControl)
type Tcpudp_builder ¶ added in v0.3.8
type Tcpudp_builder struct { Host *string Control *TcpUdpControl // contains filtered or unexported fields }
func (Tcpudp_builder) Build ¶ added in v0.3.8
func (b0 Tcpudp_builder) Build() *Tcpudp
type Tls ¶
type Tls struct {
// contains filtered or unexported fields
}
func (*Tls) ProtoMessage ¶
func (*Tls) ProtoMessage()
func (*Tls) ProtoReflect ¶
func (x *Tls) ProtoReflect() protoreflect.Message
type TlsAuto ¶ added in v0.3.8
type TlsAuto struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*TlsAuto) ClearCaCert ¶ added in v0.3.8
func (x *TlsAuto) ClearCaCert()
func (*TlsAuto) ClearCaKey ¶ added in v0.3.8
func (x *TlsAuto) ClearCaKey()
func (*TlsAuto) GetNextProtos ¶ added in v0.3.8
func (*TlsAuto) GetServernames ¶ added in v0.3.8
func (*TlsAuto) ProtoMessage ¶ added in v0.3.8
func (*TlsAuto) ProtoMessage()
func (*TlsAuto) ProtoReflect ¶ added in v0.3.8
func (x *TlsAuto) ProtoReflect() protoreflect.Message
func (*TlsAuto) SetNextProtos ¶ added in v0.3.8
func (*TlsAuto) SetServernames ¶ added in v0.3.8
type TlsAuto_builder ¶ added in v0.3.8
type TlsAuto_builder struct { Servernames []string NextProtos []string // ca cert and key will auto generate // so they will be empty CaCert []byte CaKey []byte // contains filtered or unexported fields }
func (TlsAuto_builder) Build ¶ added in v0.3.8
func (b0 TlsAuto_builder) Build() *TlsAuto
type TlsConfig ¶
type TlsConfig struct {
// contains filtered or unexported fields
}
func (*TlsConfig) GetCertificates ¶
func (x *TlsConfig) GetCertificates() []*Certificate
func (*TlsConfig) GetNextProtos ¶
func (*TlsConfig) GetServerNameCertificate ¶
func (x *TlsConfig) GetServerNameCertificate() map[string]*Certificate
func (*TlsConfig) ParseCertificates ¶
func (t *TlsConfig) ParseCertificates() []tls.Certificate
func (*TlsConfig) ParseServerNameCertificate ¶
func (t *TlsConfig) ParseServerNameCertificate() *trie.Trie[*tls.Certificate]
func (*TlsConfig) ProtoMessage ¶
func (*TlsConfig) ProtoMessage()
func (*TlsConfig) ProtoReflect ¶
func (x *TlsConfig) ProtoReflect() protoreflect.Message
func (*TlsConfig) SetCertificates ¶ added in v0.3.8
func (x *TlsConfig) SetCertificates(v []*Certificate)
func (*TlsConfig) SetNextProtos ¶ added in v0.3.8
func (*TlsConfig) SetServerNameCertificate ¶ added in v0.3.8
func (x *TlsConfig) SetServerNameCertificate(v map[string]*Certificate)
type TlsConfigManager ¶
type TlsConfigManager struct {
// contains filtered or unexported fields
}
func NewTlsConfigManager ¶
func NewTlsConfigManager(t *TlsConfig) *TlsConfigManager
func (*TlsConfigManager) Refresh ¶
func (t *TlsConfigManager) Refresh()
type TlsConfig_builder ¶ added in v0.3.8
type TlsConfig_builder struct { Certificates []*Certificate NextProtos []string ServerNameCertificate map[string]*Certificate // contains filtered or unexported fields }
func (TlsConfig_builder) Build ¶ added in v0.3.8
func (b0 TlsConfig_builder) Build() *TlsConfig
type Tls_builder ¶ added in v0.3.8
type Tls_builder struct { Tls *TlsConfig // contains filtered or unexported fields }
func (Tls_builder) Build ¶ added in v0.3.8
func (b0 Tls_builder) Build() *Tls
type Tproxy ¶
type Tproxy struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Tproxy) ClearDnsHijacking ¶ added in v0.3.8
func (x *Tproxy) ClearDnsHijacking()
func (*Tproxy) ClearForceFakeip ¶ added in v0.3.8
func (x *Tproxy) ClearForceFakeip()
func (*Tproxy) GetDnsHijacking ¶
func (*Tproxy) GetForceFakeip ¶
func (*Tproxy) HasDnsHijacking ¶ added in v0.3.8
func (*Tproxy) HasForceFakeip ¶ added in v0.3.8
func (*Tproxy) ProtoMessage ¶
func (*Tproxy) ProtoMessage()
func (*Tproxy) ProtoReflect ¶
func (x *Tproxy) ProtoReflect() protoreflect.Message
func (*Tproxy) SetDnsHijacking ¶ added in v0.3.8
func (*Tproxy) SetForceFakeip ¶ added in v0.3.8
type Tproxy_builder ¶ added in v0.3.8
type Tproxy_builder struct { Host *string DnsHijacking *bool ForceFakeip *bool // contains filtered or unexported fields }
func (Tproxy_builder) Build ¶ added in v0.3.8
func (b0 Tproxy_builder) Build() *Tproxy
type Transport ¶ added in v0.3.3
type Transport struct {
// contains filtered or unexported fields
}
func (*Transport) ClearHttp2 ¶ added in v0.3.8
func (x *Transport) ClearHttp2()
func (*Transport) ClearNormal ¶ added in v0.3.8
func (x *Transport) ClearNormal()
func (*Transport) ClearReality ¶ added in v0.3.8
func (x *Transport) ClearReality()
func (*Transport) ClearTlsAuto ¶ added in v0.3.8
func (x *Transport) ClearTlsAuto()
func (*Transport) ClearTransport ¶ added in v0.3.8
func (x *Transport) ClearTransport()
func (*Transport) ClearWebsocket ¶ added in v0.3.8
func (x *Transport) ClearWebsocket()
func (*Transport) GetReality ¶ added in v0.3.3
func (*Transport) GetTlsAuto ¶ added in v0.3.8
func (*Transport) GetWebsocket ¶ added in v0.3.3
func (*Transport) HasReality ¶ added in v0.3.8
func (*Transport) HasTlsAuto ¶ added in v0.3.8
func (*Transport) HasTransport ¶ added in v0.3.8
func (*Transport) HasWebsocket ¶ added in v0.3.8
func (*Transport) ProtoMessage ¶ added in v0.3.3
func (*Transport) ProtoMessage()
func (*Transport) ProtoReflect ¶ added in v0.3.3
func (x *Transport) ProtoReflect() protoreflect.Message
func (*Transport) SetReality ¶ added in v0.3.8
func (*Transport) SetTlsAuto ¶ added in v0.3.8
func (*Transport) SetWebsocket ¶ added in v0.3.8
func (*Transport) WhichTransport ¶ added in v0.3.8
func (x *Transport) WhichTransport() case_Transport_Transport
type Transport_builder ¶ added in v0.3.8
type Transport_builder struct { // Fields of oneof xxx_hidden_Transport: Normal *Normal Tls *Tls Mux *Mux Http2 *Http2 Websocket *Websocket Grpc *Grpc Reality *Reality TlsAuto *TlsAuto // contains filtered or unexported fields }
func (Transport_builder) Build ¶ added in v0.3.8
func (b0 Transport_builder) Build() *Transport
type Tun ¶
type Tun struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Tun) ClearDriver ¶ added in v0.3.8
func (x *Tun) ClearDriver()
func (*Tun) ClearForceFakeip ¶ added in v0.3.8
func (x *Tun) ClearForceFakeip()
func (*Tun) ClearPortal ¶ added in v0.3.8
func (x *Tun) ClearPortal()
func (*Tun) ClearPortalV6 ¶ added in v0.3.8
func (x *Tun) ClearPortalV6()
func (*Tun) ClearRoute ¶ added in v0.3.8
func (x *Tun) ClearRoute()
func (*Tun) ClearSkipMulticast ¶ added in v0.3.8
func (x *Tun) ClearSkipMulticast()
func (*Tun) GetDriver ¶
func (x *Tun) GetDriver() TunEndpointDriver
func (*Tun) GetForceFakeip ¶
func (*Tun) GetPortalV6 ¶ added in v0.3.4
func (*Tun) GetPostDown ¶ added in v0.3.6
func (*Tun) GetSkipMulticast ¶
func (*Tun) HasForceFakeip ¶ added in v0.3.8
func (*Tun) HasPortalV6 ¶ added in v0.3.8
func (*Tun) HasSkipMulticast ¶ added in v0.3.8
func (*Tun) ProtoMessage ¶
func (*Tun) ProtoMessage()
func (*Tun) ProtoReflect ¶
func (x *Tun) ProtoReflect() protoreflect.Message
func (*Tun) SetDriver ¶ added in v0.3.8
func (x *Tun) SetDriver(v TunEndpointDriver)
func (*Tun) SetForceFakeip ¶ added in v0.3.8
func (*Tun) SetPortalV6 ¶ added in v0.3.8
func (*Tun) SetPostDown ¶ added in v0.3.8
func (*Tun) SetSkipMulticast ¶ added in v0.3.8
type TunEndpointDriver ¶
type TunEndpointDriver int32
const ( Tun_fdbased TunEndpointDriver = 0 Tun_channel TunEndpointDriver = 1 Tun_system_gvisor TunEndpointDriver = 2 )
func (TunEndpointDriver) Descriptor ¶
func (TunEndpointDriver) Descriptor() protoreflect.EnumDescriptor
func (TunEndpointDriver) Enum ¶
func (x TunEndpointDriver) Enum() *TunEndpointDriver
func (TunEndpointDriver) Number ¶
func (x TunEndpointDriver) Number() protoreflect.EnumNumber
func (TunEndpointDriver) String ¶
func (x TunEndpointDriver) String() string
func (TunEndpointDriver) Type ¶
func (TunEndpointDriver) Type() protoreflect.EnumType
type Tun_builder ¶ added in v0.3.8
type Tun_builder struct { // name of the tun device // eg: tun://tun0, fd://123 Name *string Mtu *int32 ForceFakeip *bool SkipMulticast *bool Driver *TunEndpointDriver Portal *string PortalV6 *string Route *Route PostUp []string PostDown []string // contains filtered or unexported fields }
func (Tun_builder) Build ¶ added in v0.3.8
func (b0 Tun_builder) Build() *Tun
type Websocket ¶
type Websocket struct {
// contains filtered or unexported fields
}
func (*Websocket) ProtoMessage ¶
func (*Websocket) ProtoMessage()
func (*Websocket) ProtoReflect ¶
func (x *Websocket) ProtoReflect() protoreflect.Message
type Websocket_builder ¶ added in v0.3.8
type Websocket_builder struct {
// contains filtered or unexported fields
}
func (Websocket_builder) Build ¶ added in v0.3.8
func (b0 Websocket_builder) Build() *Websocket
type Yuubinsya ¶
type Yuubinsya struct { XXX_raceDetectHookData protoimpl.RaceDetectHookData XXX_presence [1]uint32 // contains filtered or unexported fields }
func (*Yuubinsya) ClearPassword ¶ added in v0.3.8
func (x *Yuubinsya) ClearPassword()
func (*Yuubinsya) ClearTcpEncrypt ¶ added in v0.3.8
func (x *Yuubinsya) ClearTcpEncrypt()
func (*Yuubinsya) ClearUdpEncrypt ¶ added in v0.3.8
func (x *Yuubinsya) ClearUdpEncrypt()
func (*Yuubinsya) GetPassword ¶
func (*Yuubinsya) GetTcpEncrypt ¶ added in v0.3.5
func (*Yuubinsya) GetUdpEncrypt ¶ added in v0.3.5
func (*Yuubinsya) HasPassword ¶ added in v0.3.8
func (*Yuubinsya) HasTcpEncrypt ¶ added in v0.3.8
func (*Yuubinsya) HasUdpEncrypt ¶ added in v0.3.8
func (*Yuubinsya) ProtoMessage ¶
func (*Yuubinsya) ProtoMessage()
func (*Yuubinsya) ProtoReflect ¶
func (x *Yuubinsya) ProtoReflect() protoreflect.Message
func (*Yuubinsya) SetPassword ¶ added in v0.3.8
func (*Yuubinsya) SetTcpEncrypt ¶ added in v0.3.8
func (*Yuubinsya) SetUdpEncrypt ¶ added in v0.3.8
type Yuubinsya_builder ¶ added in v0.3.8
type Yuubinsya_builder struct { Password *string TcpEncrypt *bool UdpEncrypt *bool // contains filtered or unexported fields }
func (Yuubinsya_builder) Build ¶ added in v0.3.8
func (b0 Yuubinsya_builder) Build() *Yuubinsya
Click to show internal directories.
Click to hide internal directories.