Documentation ¶
Index ¶
- Variables
- type FakeDnsPool
- func (*FakeDnsPool) Descriptor() ([]byte, []int)deprecated
- func (x *FakeDnsPool) GetIpPool() string
- func (x *FakeDnsPool) GetLruSize() int64
- func (*FakeDnsPool) ProtoMessage()
- func (x *FakeDnsPool) ProtoReflect() protoreflect.Message
- func (x *FakeDnsPool) Reset()
- func (x *FakeDnsPool) String() string
- type Holder
Constants ¶
This section is empty.
Variables ¶
View Source
var File_app_dns_fakedns_fakedns_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FakeDnsPool ¶
type FakeDnsPool struct { IpPool string `protobuf:"bytes,1,opt,name=ip_pool,json=ipPool,proto3" json:"ip_pool,omitempty"` //CIDR of IP pool used as fake DNS IP LruSize int64 `protobuf:"varint,2,opt,name=lruSize,proto3" json:"lruSize,omitempty"` //Size of Pool for remembering relationship between domain name and IP address // contains filtered or unexported fields }
func (*FakeDnsPool) Descriptor
deprecated
func (*FakeDnsPool) Descriptor() ([]byte, []int)
Deprecated: Use FakeDnsPool.ProtoReflect.Descriptor instead.
func (*FakeDnsPool) GetIpPool ¶
func (x *FakeDnsPool) GetIpPool() string
func (*FakeDnsPool) GetLruSize ¶
func (x *FakeDnsPool) GetLruSize() int64
func (*FakeDnsPool) ProtoMessage ¶
func (*FakeDnsPool) ProtoMessage()
func (*FakeDnsPool) ProtoReflect ¶
func (x *FakeDnsPool) ProtoReflect() protoreflect.Message
func (*FakeDnsPool) Reset ¶
func (x *FakeDnsPool) Reset()
func (*FakeDnsPool) String ¶
func (x *FakeDnsPool) String() string
type Holder ¶
type Holder struct {
// contains filtered or unexported fields
}
func NewFakeDNSHolder ¶
func NewFakeDNSHolderConfigOnly ¶
func NewFakeDNSHolderConfigOnly(conf *FakeDnsPool) (*Holder, error)
func (*Holder) GetDomainFromFakeDNS ¶
GetDomainFromFakeDNS check if an IP is a fake IP and have corresponding domain name
func (*Holder) GetFakeIPForDomain ¶
GetFakeIPForDomain check and generate a fake IP for a domain name
func (*Holder) GetFakeIPRange ¶
GetFakeIPRange return fake IP range from configuration
Click to show internal directories.
Click to hide internal directories.