Documentation ¶
Index ¶
- type MemoryStorage
- func (s *MemoryStorage) FakeIPLoad(address netip.Addr) (string, bool)
- func (s *MemoryStorage) FakeIPLoadDomain(domain string, isIPv6 bool) (netip.Addr, bool)
- func (s *MemoryStorage) FakeIPMetadata() *adapter.FakeIPMetadata
- func (s *MemoryStorage) FakeIPReset() error
- func (s *MemoryStorage) FakeIPSaveMetadata(metadata *adapter.FakeIPMetadata) error
- func (s *MemoryStorage) FakeIPSaveMetadataAsync(metadata *adapter.FakeIPMetadata)
- func (s *MemoryStorage) FakeIPStore(address netip.Addr, domain string) error
- func (s *MemoryStorage) FakeIPStoreAsync(address netip.Addr, domain string, logger logger.Logger)
- type NATPacketConn
- type Store
- type Transport
- func (s *Transport) Close() error
- func (s *Transport) Exchange(ctx context.Context, message *mDNS.Msg) (*mDNS.Msg, error)
- func (s *Transport) Lookup(ctx context.Context, domain string, strategy dns.DomainStrategy) ([]netip.Addr, error)
- func (s *Transport) Name() string
- func (s *Transport) Raw() bool
- func (s *Transport) Reset()
- func (s *Transport) Start() error
- func (s *Transport) Store() adapter.FakeIPStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStorage ¶
type MemoryStorage struct {
// contains filtered or unexported fields
}
func NewMemoryStorage ¶
func NewMemoryStorage() *MemoryStorage
func (*MemoryStorage) FakeIPLoad ¶
func (s *MemoryStorage) FakeIPLoad(address netip.Addr) (string, bool)
func (*MemoryStorage) FakeIPLoadDomain ¶ added in v1.3.3
func (*MemoryStorage) FakeIPMetadata ¶
func (s *MemoryStorage) FakeIPMetadata() *adapter.FakeIPMetadata
func (*MemoryStorage) FakeIPReset ¶
func (s *MemoryStorage) FakeIPReset() error
func (*MemoryStorage) FakeIPSaveMetadata ¶
func (s *MemoryStorage) FakeIPSaveMetadata(metadata *adapter.FakeIPMetadata) error
func (*MemoryStorage) FakeIPSaveMetadataAsync ¶ added in v1.4.0
func (s *MemoryStorage) FakeIPSaveMetadataAsync(metadata *adapter.FakeIPMetadata)
func (*MemoryStorage) FakeIPStore ¶
func (s *MemoryStorage) FakeIPStore(address netip.Addr, domain string) error
func (*MemoryStorage) FakeIPStoreAsync ¶ added in v1.3.3
type NATPacketConn ¶
type NATPacketConn struct { N.PacketConn // contains filtered or unexported fields }
func NewNATPacketConn ¶
func NewNATPacketConn(conn N.PacketConn, origin M.Socksaddr, destination M.Socksaddr) *NATPacketConn
func (*NATPacketConn) CreatePacketReadWaiter ¶
func (c *NATPacketConn) CreatePacketReadWaiter() (N.PacketReadWaiter, bool)
func (*NATPacketConn) ReadPacket ¶
func (*NATPacketConn) Upstream ¶
func (c *NATPacketConn) Upstream() any
func (*NATPacketConn) WritePacket ¶
Click to show internal directories.
Click to hide internal directories.