Documentation ¶
Index ¶
- func NewConn(c net.Conn, a constant.ProxyAdapter) constant.Conn
- type Base
- func (b *Base) Addr() string
- func (b *Base) DialOptions(opts ...dialer.Option) []dialer.Option
- func (b *Base) ListenPacketContext(_ context.Context, _ *constant.Metadata, _ ...dialer.Option) (constant.PacketConn, error)
- func (b *Base) MarshalJSON() ([]byte, error)
- func (b *Base) Name() string
- func (b *Base) StreamConn(c net.Conn, _ *constant.Metadata) (net.Conn, error)
- func (b *Base) SupportUDP() bool
- func (b *Base) Type() constant.AdapterType
- func (b *Base) Unwrap(_ *constant.Metadata) constant.Proxy
- type BaseOption
- type BasicOption
- type Direct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (*Base) DialOptions ¶
DialOptions return []dialer.Option from struct
func (*Base) ListenPacketContext ¶
func (b *Base) ListenPacketContext(_ context.Context, _ *constant.Metadata, _ ...dialer.Option) (constant.PacketConn, error)
ListenPacketContext implements constant.ProxyAdapter
func (*Base) MarshalJSON ¶
MarshalJSON implements constant.ProxyAdapter
func (*Base) StreamConn ¶
StreamConn implements constant.ProxyAdapter
func (*Base) SupportUDP ¶
SupportUDP implements constant.ProxyAdapter
func (*Base) Type ¶
func (b *Base) Type() constant.AdapterType
Type implements constant.ProxyAdapter
type BaseOption ¶
type BasicOption ¶
type BasicOption struct {
Interface string `proxy:"interface-name,omitempty" group:"interface-name,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.