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 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 ¶
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 ¶
func (s *MemoryStorage) FakeIPSaveMetadataAsync(metadata *adapter.FakeIPMetadata)
func (*MemoryStorage) FakeIPStore ¶
func (s *MemoryStorage) FakeIPStore(address netip.Addr, domain string) error
func (*MemoryStorage) FakeIPStoreAsync ¶
Click to show internal directories.
Click to hide internal directories.