listener

package
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 19 Imported by: 1

Documentation

Index

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 GetNetworkOneofValue(i *Inbound) proto.Message

func GetProtocolOneofValue added in v0.3.8

func GetProtocolOneofValue(i *Inbound) proto.Message

func GetTransportOneofValue added in v0.3.8

func GetTransportOneofValue(i *Transport) proto.Message

func Listen added in v0.3.3

func Listen(config *Inbound, handler netapi.Handler) (netapi.Accepter, error)

func Network added in v0.3.3

func Network(config proto.Message) (netapi.Listener, error)

func ParseTLS

func ParseTLS(t *TlsConfig) (*tls.Config, error)

func Protocols added in v0.3.3

func Protocols(lis netapi.Listener, config proto.Message, handler netapi.Handler) (netapi.Accepter, error)

func RegisterNetwork added in v0.3.3

func RegisterNetwork[T proto.Message](wrap func(T) (netapi.Listener, error))

func RegisterProtocol

func RegisterProtocol[T proto.Message](wrap func(T, netapi.Listener, netapi.Handler) (netapi.Accepter, error))

func RegisterTransport added in v0.3.3

func RegisterTransport[T proto.Message](wrap func(T, netapi.Listener) (netapi.Listener, error))

func Transports added in v0.3.3

func Transports(lis netapi.Listener, protocols []*Transport) (netapi.Listener, error)

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

func (*Empty) Reset added in v0.3.3

func (x *Empty) Reset()

func (*Empty) String added in v0.3.3

func (x *Empty) String() string

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

func (*Grpc) Reset

func (x *Grpc) Reset()

func (*Grpc) String

func (x *Grpc) String() string

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 (x *Http) GetPassword() string

func (*Http) GetUsername

func (x *Http) GetUsername() string

func (*Http) HasPassword added in v0.3.8

func (x *Http) HasPassword() bool

func (*Http) HasUsername added in v0.3.8

func (x *Http) HasUsername() bool

func (*Http) ProtoMessage

func (*Http) ProtoMessage()

func (*Http) ProtoReflect

func (x *Http) ProtoReflect() protoreflect.Message

func (*Http) Reset

func (x *Http) Reset()

func (*Http) SetPassword added in v0.3.8

func (x *Http) SetPassword(v string)

func (*Http) SetUsername added in v0.3.8

func (x *Http) SetUsername(v string)

func (*Http) String

func (x *Http) String() string

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

func (*Http2) Reset

func (x *Http2) Reset()

func (*Http2) String

func (x *Http2) String() string

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) ClearHttp added in v0.3.8

func (x *Inbound) ClearHttp()

func (*Inbound) ClearMix added in v0.3.8

func (x *Inbound) ClearMix()

func (*Inbound) ClearName added in v0.3.8

func (x *Inbound) ClearName()

func (*Inbound) ClearNetwork added in v0.3.8

func (x *Inbound) ClearNetwork()

func (*Inbound) ClearNone added in v0.3.8

func (x *Inbound) ClearNone()

func (*Inbound) ClearProtocol added in v0.3.8

func (x *Inbound) ClearProtocol()

func (*Inbound) ClearQuic added in v0.3.8

func (x *Inbound) ClearQuic()

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) ClearTun added in v0.3.8

func (x *Inbound) ClearTun()

func (*Inbound) ClearYuubinsya added in v0.3.8

func (x *Inbound) ClearYuubinsya()

func (*Inbound) GetEmpty added in v0.3.3

func (x *Inbound) GetEmpty() *Empty

func (*Inbound) GetEnabled added in v0.3.3

func (x *Inbound) GetEnabled() bool

func (*Inbound) GetHttp added in v0.3.3

func (x *Inbound) GetHttp() *Http

func (*Inbound) GetMix added in v0.3.3

func (x *Inbound) GetMix() *Mixed

func (*Inbound) GetName added in v0.3.3

func (x *Inbound) GetName() string

func (*Inbound) GetNone added in v0.3.8

func (x *Inbound) GetNone() *Empty

func (*Inbound) GetQuic added in v0.3.3

func (x *Inbound) GetQuic() *Quic

func (*Inbound) GetRedir added in v0.3.3

func (x *Inbound) GetRedir() *Redir

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 (x *Inbound) GetSocks4A() *Socks4A

func (*Inbound) GetSocks5 added in v0.3.3

func (x *Inbound) GetSocks5() *Socks5

func (*Inbound) GetTcpudp added in v0.3.3

func (x *Inbound) GetTcpudp() *Tcpudp

func (*Inbound) GetTproxy added in v0.3.3

func (x *Inbound) GetTproxy() *Tproxy

func (*Inbound) GetTransport added in v0.3.3

func (x *Inbound) GetTransport() []*Transport

func (*Inbound) GetTun added in v0.3.3

func (x *Inbound) GetTun() *Tun

func (*Inbound) GetYuubinsya added in v0.3.3

func (x *Inbound) GetYuubinsya() *Yuubinsya

func (*Inbound) HasEmpty added in v0.3.8

func (x *Inbound) HasEmpty() bool

func (*Inbound) HasEnabled added in v0.3.8

func (x *Inbound) HasEnabled() bool

func (*Inbound) HasHttp added in v0.3.8

func (x *Inbound) HasHttp() bool

func (*Inbound) HasMix added in v0.3.8

func (x *Inbound) HasMix() bool

func (*Inbound) HasName added in v0.3.8

func (x *Inbound) HasName() bool

func (*Inbound) HasNetwork added in v0.3.8

func (x *Inbound) HasNetwork() bool

func (*Inbound) HasNone added in v0.3.8

func (x *Inbound) HasNone() bool

func (*Inbound) HasProtocol added in v0.3.8

func (x *Inbound) HasProtocol() bool

func (*Inbound) HasQuic added in v0.3.8

func (x *Inbound) HasQuic() bool

func (*Inbound) HasRedir added in v0.3.8

func (x *Inbound) HasRedir() bool

func (*Inbound) HasReverseHttp added in v0.3.8

func (x *Inbound) HasReverseHttp() bool

func (*Inbound) HasReverseTcp added in v0.3.8

func (x *Inbound) HasReverseTcp() bool

func (*Inbound) HasSocks4A added in v0.3.8

func (x *Inbound) HasSocks4A() bool

func (*Inbound) HasSocks5 added in v0.3.8

func (x *Inbound) HasSocks5() bool

func (*Inbound) HasTcpudp added in v0.3.8

func (x *Inbound) HasTcpudp() bool

func (*Inbound) HasTproxy added in v0.3.8

func (x *Inbound) HasTproxy() bool

func (*Inbound) HasTun added in v0.3.8

func (x *Inbound) HasTun() bool

func (*Inbound) HasYuubinsya added in v0.3.8

func (x *Inbound) HasYuubinsya() bool

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) Reset added in v0.3.3

func (x *Inbound) Reset()

func (*Inbound) SetEmpty added in v0.3.8

func (x *Inbound) SetEmpty(v *Empty)

func (*Inbound) SetEnabled added in v0.3.8

func (x *Inbound) SetEnabled(v bool)

func (*Inbound) SetHttp added in v0.3.8

func (x *Inbound) SetHttp(v *Http)

func (*Inbound) SetMix added in v0.3.8

func (x *Inbound) SetMix(v *Mixed)

func (*Inbound) SetName added in v0.3.8

func (x *Inbound) SetName(v string)

func (*Inbound) SetNone added in v0.3.8

func (x *Inbound) SetNone(v *Empty)

func (*Inbound) SetQuic added in v0.3.8

func (x *Inbound) SetQuic(v *Quic)

func (*Inbound) SetRedir added in v0.3.8

func (x *Inbound) SetRedir(v *Redir)

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 (x *Inbound) SetSocks4A(v *Socks4A)

func (*Inbound) SetSocks5 added in v0.3.8

func (x *Inbound) SetSocks5(v *Socks5)

func (*Inbound) SetTcpudp added in v0.3.8

func (x *Inbound) SetTcpudp(v *Tcpudp)

func (*Inbound) SetTproxy added in v0.3.8

func (x *Inbound) SetTproxy(v *Tproxy)

func (*Inbound) SetTransport added in v0.3.8

func (x *Inbound) SetTransport(v []*Transport)

func (*Inbound) SetTun added in v0.3.8

func (x *Inbound) SetTun(v *Tun)

func (*Inbound) SetYuubinsya added in v0.3.8

func (x *Inbound) SetYuubinsya(v *Yuubinsya)

func (*Inbound) String added in v0.3.3

func (x *Inbound) String() string

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

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 (x *Mixed) GetPassword() string

func (*Mixed) GetUsername

func (x *Mixed) GetUsername() string

func (*Mixed) HasPassword added in v0.3.8

func (x *Mixed) HasPassword() bool

func (*Mixed) HasUsername added in v0.3.8

func (x *Mixed) HasUsername() bool

func (*Mixed) ProtoMessage

func (*Mixed) ProtoMessage()

func (*Mixed) ProtoReflect

func (x *Mixed) ProtoReflect() protoreflect.Message

func (*Mixed) Reset

func (x *Mixed) Reset()

func (*Mixed) SetPassword added in v0.3.8

func (x *Mixed) SetPassword(v string)

func (*Mixed) SetUsername added in v0.3.8

func (x *Mixed) SetUsername(v string)

func (*Mixed) String

func (x *Mixed) String() string

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

func (*Mux) Reset added in v0.3.3

func (x *Mux) Reset()

func (*Mux) String added in v0.3.3

func (x *Mux) String() string

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

func (*Normal) Reset

func (x *Normal) Reset()

func (*Normal) String

func (x *Normal) String() string

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) ClearHost added in v0.3.8

func (x *Quic) ClearHost()

func (*Quic) ClearTls added in v0.3.8

func (x *Quic) ClearTls()

func (*Quic) GetHost added in v0.3.6

func (x *Quic) GetHost() string

func (*Quic) GetTls

func (x *Quic) GetTls() *TlsConfig

func (*Quic) HasHost added in v0.3.8

func (x *Quic) HasHost() bool

func (*Quic) HasTls added in v0.3.8

func (x *Quic) HasTls() bool

func (*Quic) ProtoMessage

func (*Quic) ProtoMessage()

func (*Quic) ProtoReflect

func (x *Quic) ProtoReflect() protoreflect.Message

func (*Quic) Reset

func (x *Quic) Reset()

func (*Quic) SetHost added in v0.3.8

func (x *Quic) SetHost(v string)

func (*Quic) SetTls added in v0.3.8

func (x *Quic) SetTls(v *TlsConfig)

func (*Quic) String

func (x *Quic) String() string

type Quic_builder added in v0.3.8

type Quic_builder struct {
	Host *string
	Tls  *TlsConfig
	// contains filtered or unexported fields
}

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) ClearDest added in v0.3.8

func (x *Reality) ClearDest()

func (*Reality) ClearPrivateKey added in v0.3.8

func (x *Reality) ClearPrivateKey()

func (*Reality) GetDebug

func (x *Reality) GetDebug() bool

func (*Reality) GetDest

func (x *Reality) GetDest() string

func (*Reality) GetPrivateKey

func (x *Reality) GetPrivateKey() string

func (*Reality) GetServerName

func (x *Reality) GetServerName() []string

func (*Reality) GetShortId

func (x *Reality) GetShortId() []string

func (*Reality) HasDebug added in v0.3.8

func (x *Reality) HasDebug() bool

func (*Reality) HasDest added in v0.3.8

func (x *Reality) HasDest() bool

func (*Reality) HasPrivateKey added in v0.3.8

func (x *Reality) HasPrivateKey() bool

func (*Reality) ProtoMessage

func (*Reality) ProtoMessage()

func (*Reality) ProtoReflect

func (x *Reality) ProtoReflect() protoreflect.Message

func (*Reality) Reset

func (x *Reality) Reset()

func (*Reality) SetDebug added in v0.3.8

func (x *Reality) SetDebug(v bool)

func (*Reality) SetDest added in v0.3.8

func (x *Reality) SetDest(v string)

func (*Reality) SetPrivateKey added in v0.3.8

func (x *Reality) SetPrivateKey(v string)

func (*Reality) SetServerName added in v0.3.8

func (x *Reality) SetServerName(v []string)

func (*Reality) SetShortId added in v0.3.8

func (x *Reality) SetShortId(v []string)

func (*Reality) String

func (x *Reality) String() string

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) ClearHost added in v0.3.8

func (x *Redir) ClearHost()

func (*Redir) GetHost

func (x *Redir) GetHost() string

func (*Redir) HasHost added in v0.3.8

func (x *Redir) HasHost() bool

func (*Redir) ProtoMessage

func (*Redir) ProtoMessage()

func (*Redir) ProtoReflect

func (x *Redir) ProtoReflect() protoreflect.Message

func (*Redir) Reset

func (x *Redir) Reset()

func (*Redir) SetHost added in v0.3.8

func (x *Redir) SetHost(v string)

func (*Redir) String

func (x *Redir) String() string

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 (x *Route) GetExcludes() []string

func (*Route) GetRoutes added in v0.3.4

func (x *Route) GetRoutes() []string

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) Reset added in v0.3.4

func (x *Route) Reset()

func (*Route) SetExcludes added in v0.3.8

func (x *Route) SetExcludes(v []string)

func (*Route) SetRoutes added in v0.3.8

func (x *Route) SetRoutes(v []string)

func (*Route) String added in v0.3.4

func (x *Route) String() string

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 (x *Sniff) GetEnabled() bool

func (*Sniff) HasEnabled added in v0.3.8

func (x *Sniff) HasEnabled() bool

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) Reset added in v0.3.6

func (x *Sniff) Reset()

func (*Sniff) SetEnabled added in v0.3.8

func (x *Sniff) SetEnabled(v bool)

func (*Sniff) String added in v0.3.6

func (x *Sniff) String() string

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 (x *Socks4A) GetUsername() string

func (*Socks4A) HasUsername added in v0.3.8

func (x *Socks4A) HasUsername() bool

func (*Socks4A) ProtoMessage

func (*Socks4A) ProtoMessage()

func (*Socks4A) ProtoReflect

func (x *Socks4A) ProtoReflect() protoreflect.Message

func (*Socks4A) Reset

func (x *Socks4A) Reset()

func (*Socks4A) SetUsername added in v0.3.8

func (x *Socks4A) SetUsername(v string)

func (*Socks4A) String

func (x *Socks4A) String() string

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) ClearUdp added in v0.3.8

func (x *Socks5) ClearUdp()

func (*Socks5) ClearUsername added in v0.3.8

func (x *Socks5) ClearUsername()

func (*Socks5) GetPassword

func (x *Socks5) GetPassword() string

func (*Socks5) GetUdp added in v0.3.3

func (x *Socks5) GetUdp() bool

func (*Socks5) GetUsername

func (x *Socks5) GetUsername() string

func (*Socks5) HasPassword added in v0.3.8

func (x *Socks5) HasPassword() bool

func (*Socks5) HasUdp added in v0.3.8

func (x *Socks5) HasUdp() bool

func (*Socks5) HasUsername added in v0.3.8

func (x *Socks5) HasUsername() bool

func (*Socks5) ProtoMessage

func (*Socks5) ProtoMessage()

func (*Socks5) ProtoReflect

func (x *Socks5) ProtoReflect() protoreflect.Message

func (*Socks5) Reset

func (x *Socks5) Reset()

func (*Socks5) SetPassword added in v0.3.8

func (x *Socks5) SetPassword(v string)

func (*Socks5) SetUdp added in v0.3.8

func (x *Socks5) SetUdp(v bool)

func (*Socks5) SetUsername added in v0.3.8

func (x *Socks5) SetUsername(v string)

func (*Socks5) String

func (x *Socks5) String() string

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) Enum added in v0.3.4

func (x TcpUdpControl) Enum() *TcpUdpControl

func (TcpUdpControl) Number added in v0.3.4

func (TcpUdpControl) String added in v0.3.4

func (x TcpUdpControl) String() string

func (TcpUdpControl) Type added in v0.3.4

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) ClearHost added in v0.3.8

func (x *Tcpudp) ClearHost()

func (*Tcpudp) GetControl added in v0.3.4

func (x *Tcpudp) GetControl() TcpUdpControl

func (*Tcpudp) GetHost added in v0.3.3

func (x *Tcpudp) GetHost() string

func (*Tcpudp) HasControl added in v0.3.8

func (x *Tcpudp) HasControl() bool

func (*Tcpudp) HasHost added in v0.3.8

func (x *Tcpudp) HasHost() bool

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) Reset added in v0.3.3

func (x *Tcpudp) Reset()

func (*Tcpudp) SetControl added in v0.3.8

func (x *Tcpudp) SetControl(v TcpUdpControl)

func (*Tcpudp) SetHost added in v0.3.8

func (x *Tcpudp) SetHost(v string)

func (*Tcpudp) String added in v0.3.3

func (x *Tcpudp) String() string

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) ClearTls added in v0.3.8

func (x *Tls) ClearTls()

func (*Tls) GetTls

func (x *Tls) GetTls() *TlsConfig

func (*Tls) HasTls added in v0.3.8

func (x *Tls) HasTls() bool

func (*Tls) ProtoMessage

func (*Tls) ProtoMessage()

func (*Tls) ProtoReflect

func (x *Tls) ProtoReflect() protoreflect.Message

func (*Tls) Reset

func (x *Tls) Reset()

func (*Tls) SetTls added in v0.3.8

func (x *Tls) SetTls(v *TlsConfig)

func (*Tls) String

func (x *Tls) String() string

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) GetCaCert added in v0.3.8

func (x *TlsAuto) GetCaCert() []byte

func (*TlsAuto) GetCaKey added in v0.3.8

func (x *TlsAuto) GetCaKey() []byte

func (*TlsAuto) GetNextProtos added in v0.3.8

func (x *TlsAuto) GetNextProtos() []string

func (*TlsAuto) GetServernames added in v0.3.8

func (x *TlsAuto) GetServernames() []string

func (*TlsAuto) HasCaCert added in v0.3.8

func (x *TlsAuto) HasCaCert() bool

func (*TlsAuto) HasCaKey added in v0.3.8

func (x *TlsAuto) HasCaKey() bool

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) Reset added in v0.3.8

func (x *TlsAuto) Reset()

func (*TlsAuto) SetCaCert added in v0.3.8

func (x *TlsAuto) SetCaCert(v []byte)

func (*TlsAuto) SetCaKey added in v0.3.8

func (x *TlsAuto) SetCaKey(v []byte)

func (*TlsAuto) SetNextProtos added in v0.3.8

func (x *TlsAuto) SetNextProtos(v []string)

func (*TlsAuto) SetServernames added in v0.3.8

func (x *TlsAuto) SetServernames(v []string)

func (*TlsAuto) String added in v0.3.8

func (x *TlsAuto) String() string

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 (x *TlsConfig) GetNextProtos() []string

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) Reset

func (x *TlsConfig) Reset()

func (*TlsConfig) SetCertificates added in v0.3.8

func (x *TlsConfig) SetCertificates(v []*Certificate)

func (*TlsConfig) SetNextProtos added in v0.3.8

func (x *TlsConfig) SetNextProtos(v []string)

func (*TlsConfig) SetServerNameCertificate added in v0.3.8

func (x *TlsConfig) SetServerNameCertificate(v map[string]*Certificate)

func (*TlsConfig) String

func (x *TlsConfig) String() string

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) ClearHost added in v0.3.8

func (x *Tproxy) ClearHost()

func (*Tproxy) GetDnsHijacking

func (x *Tproxy) GetDnsHijacking() bool

func (*Tproxy) GetForceFakeip

func (x *Tproxy) GetForceFakeip() bool

func (*Tproxy) GetHost

func (x *Tproxy) GetHost() string

func (*Tproxy) HasDnsHijacking added in v0.3.8

func (x *Tproxy) HasDnsHijacking() bool

func (*Tproxy) HasForceFakeip added in v0.3.8

func (x *Tproxy) HasForceFakeip() bool

func (*Tproxy) HasHost added in v0.3.8

func (x *Tproxy) HasHost() bool

func (*Tproxy) ProtoMessage

func (*Tproxy) ProtoMessage()

func (*Tproxy) ProtoReflect

func (x *Tproxy) ProtoReflect() protoreflect.Message

func (*Tproxy) Reset

func (x *Tproxy) Reset()

func (*Tproxy) SetDnsHijacking added in v0.3.8

func (x *Tproxy) SetDnsHijacking(v bool)

func (*Tproxy) SetForceFakeip added in v0.3.8

func (x *Tproxy) SetForceFakeip(v bool)

func (*Tproxy) SetHost added in v0.3.8

func (x *Tproxy) SetHost(v string)

func (*Tproxy) String

func (x *Tproxy) String() string

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) ClearGrpc added in v0.3.8

func (x *Transport) ClearGrpc()

func (*Transport) ClearHttp2 added in v0.3.8

func (x *Transport) ClearHttp2()

func (*Transport) ClearMux added in v0.3.8

func (x *Transport) ClearMux()

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) ClearTls added in v0.3.8

func (x *Transport) ClearTls()

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) GetGrpc added in v0.3.3

func (x *Transport) GetGrpc() *Grpc

func (*Transport) GetHttp2 added in v0.3.3

func (x *Transport) GetHttp2() *Http2

func (*Transport) GetMux added in v0.3.3

func (x *Transport) GetMux() *Mux

func (*Transport) GetNormal added in v0.3.3

func (x *Transport) GetNormal() *Normal

func (*Transport) GetReality added in v0.3.3

func (x *Transport) GetReality() *Reality

func (*Transport) GetTls added in v0.3.3

func (x *Transport) GetTls() *Tls

func (*Transport) GetTlsAuto added in v0.3.8

func (x *Transport) GetTlsAuto() *TlsAuto

func (*Transport) GetWebsocket added in v0.3.3

func (x *Transport) GetWebsocket() *Websocket

func (*Transport) HasGrpc added in v0.3.8

func (x *Transport) HasGrpc() bool

func (*Transport) HasHttp2 added in v0.3.8

func (x *Transport) HasHttp2() bool

func (*Transport) HasMux added in v0.3.8

func (x *Transport) HasMux() bool

func (*Transport) HasNormal added in v0.3.8

func (x *Transport) HasNormal() bool

func (*Transport) HasReality added in v0.3.8

func (x *Transport) HasReality() bool

func (*Transport) HasTls added in v0.3.8

func (x *Transport) HasTls() bool

func (*Transport) HasTlsAuto added in v0.3.8

func (x *Transport) HasTlsAuto() bool

func (*Transport) HasTransport added in v0.3.8

func (x *Transport) HasTransport() bool

func (*Transport) HasWebsocket added in v0.3.8

func (x *Transport) HasWebsocket() bool

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) Reset added in v0.3.3

func (x *Transport) Reset()

func (*Transport) SetGrpc added in v0.3.8

func (x *Transport) SetGrpc(v *Grpc)

func (*Transport) SetHttp2 added in v0.3.8

func (x *Transport) SetHttp2(v *Http2)

func (*Transport) SetMux added in v0.3.8

func (x *Transport) SetMux(v *Mux)

func (*Transport) SetNormal added in v0.3.8

func (x *Transport) SetNormal(v *Normal)

func (*Transport) SetReality added in v0.3.8

func (x *Transport) SetReality(v *Reality)

func (*Transport) SetTls added in v0.3.8

func (x *Transport) SetTls(v *Tls)

func (*Transport) SetTlsAuto added in v0.3.8

func (x *Transport) SetTlsAuto(v *TlsAuto)

func (*Transport) SetWebsocket added in v0.3.8

func (x *Transport) SetWebsocket(v *Websocket)

func (*Transport) String added in v0.3.3

func (x *Transport) String() string

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) ClearMtu added in v0.3.8

func (x *Tun) ClearMtu()

func (*Tun) ClearName added in v0.3.8

func (x *Tun) ClearName()

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 (x *Tun) GetForceFakeip() bool

func (*Tun) GetMtu

func (x *Tun) GetMtu() int32

func (*Tun) GetName

func (x *Tun) GetName() string

func (*Tun) GetPortal

func (x *Tun) GetPortal() string

func (*Tun) GetPortalV6 added in v0.3.4

func (x *Tun) GetPortalV6() string

func (*Tun) GetPostDown added in v0.3.6

func (x *Tun) GetPostDown() []string

func (*Tun) GetPostUp added in v0.3.6

func (x *Tun) GetPostUp() []string

func (*Tun) GetRoute added in v0.3.4

func (x *Tun) GetRoute() *Route

func (*Tun) GetSkipMulticast

func (x *Tun) GetSkipMulticast() bool

func (*Tun) HasDriver added in v0.3.8

func (x *Tun) HasDriver() bool

func (*Tun) HasForceFakeip added in v0.3.8

func (x *Tun) HasForceFakeip() bool

func (*Tun) HasMtu added in v0.3.8

func (x *Tun) HasMtu() bool

func (*Tun) HasName added in v0.3.8

func (x *Tun) HasName() bool

func (*Tun) HasPortal added in v0.3.8

func (x *Tun) HasPortal() bool

func (*Tun) HasPortalV6 added in v0.3.8

func (x *Tun) HasPortalV6() bool

func (*Tun) HasRoute added in v0.3.8

func (x *Tun) HasRoute() bool

func (*Tun) HasSkipMulticast added in v0.3.8

func (x *Tun) HasSkipMulticast() bool

func (*Tun) ProtoMessage

func (*Tun) ProtoMessage()

func (*Tun) ProtoReflect

func (x *Tun) ProtoReflect() protoreflect.Message

func (*Tun) Reset

func (x *Tun) Reset()

func (*Tun) SetDriver added in v0.3.8

func (x *Tun) SetDriver(v TunEndpointDriver)

func (*Tun) SetForceFakeip added in v0.3.8

func (x *Tun) SetForceFakeip(v bool)

func (*Tun) SetMtu added in v0.3.8

func (x *Tun) SetMtu(v int32)

func (*Tun) SetName added in v0.3.8

func (x *Tun) SetName(v string)

func (*Tun) SetPortal added in v0.3.8

func (x *Tun) SetPortal(v string)

func (*Tun) SetPortalV6 added in v0.3.8

func (x *Tun) SetPortalV6(v string)

func (*Tun) SetPostDown added in v0.3.8

func (x *Tun) SetPostDown(v []string)

func (*Tun) SetPostUp added in v0.3.8

func (x *Tun) SetPostUp(v []string)

func (*Tun) SetRoute added in v0.3.8

func (x *Tun) SetRoute(v *Route)

func (*Tun) SetSkipMulticast added in v0.3.8

func (x *Tun) SetSkipMulticast(v bool)

func (*Tun) String

func (x *Tun) String() string

type TunEndpointDriver

type TunEndpointDriver int32
const (
	Tun_fdbased       TunEndpointDriver = 0
	Tun_channel       TunEndpointDriver = 1
	Tun_system_gvisor TunEndpointDriver = 2
)

func (TunEndpointDriver) Descriptor

func (TunEndpointDriver) Enum

func (TunEndpointDriver) Number

func (TunEndpointDriver) String

func (x TunEndpointDriver) String() string

func (TunEndpointDriver) Type

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

func (*Websocket) Reset

func (x *Websocket) Reset()

func (*Websocket) String

func (x *Websocket) String() string

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 (x *Yuubinsya) GetPassword() string

func (*Yuubinsya) GetTcpEncrypt added in v0.3.5

func (x *Yuubinsya) GetTcpEncrypt() bool

func (*Yuubinsya) GetUdpEncrypt added in v0.3.5

func (x *Yuubinsya) GetUdpEncrypt() bool

func (*Yuubinsya) HasPassword added in v0.3.8

func (x *Yuubinsya) HasPassword() bool

func (*Yuubinsya) HasTcpEncrypt added in v0.3.8

func (x *Yuubinsya) HasTcpEncrypt() bool

func (*Yuubinsya) HasUdpEncrypt added in v0.3.8

func (x *Yuubinsya) HasUdpEncrypt() bool

func (*Yuubinsya) ProtoMessage

func (*Yuubinsya) ProtoMessage()

func (*Yuubinsya) ProtoReflect

func (x *Yuubinsya) ProtoReflect() protoreflect.Message

func (*Yuubinsya) Reset

func (x *Yuubinsya) Reset()

func (*Yuubinsya) SetPassword added in v0.3.8

func (x *Yuubinsya) SetPassword(v string)

func (*Yuubinsya) SetTcpEncrypt added in v0.3.8

func (x *Yuubinsya) SetTcpEncrypt(v bool)

func (*Yuubinsya) SetUdpEncrypt added in v0.3.8

func (x *Yuubinsya) SetUdpEncrypt(v bool)

func (*Yuubinsya) String

func (x *Yuubinsya) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL