Versions in this module Expand all Collapse all v1 v1.0.2 Apr 25, 2024 v1.0.1 Apr 24, 2024 Changes in this version + var Domain_Type_name = map[int32]string + var Domain_Type_value = map[string]int32 + var File_component_geodata_router_config_proto protoreflect.FileDescriptor + type CIDR struct + Ip []byte + Prefix uint32 + func (*CIDR) Descriptor() ([]byte, []int) + func (*CIDR) ProtoMessage() + func (x *CIDR) GetIp() []byte + func (x *CIDR) GetPrefix() uint32 + func (x *CIDR) ProtoReflect() protoreflect.Message + func (x *CIDR) Reset() + func (x *CIDR) String() string + type Domain struct + Attribute []*Domain_Attribute + Type Domain_Type + Value string + func (*Domain) Descriptor() ([]byte, []int) + func (*Domain) ProtoMessage() + func (x *Domain) GetAttribute() []*Domain_Attribute + func (x *Domain) GetType() Domain_Type + func (x *Domain) GetValue() string + func (x *Domain) ProtoReflect() protoreflect.Message + func (x *Domain) Reset() + func (x *Domain) String() string + type DomainMatcher interface + ApplyDomain func(string) bool + func NewMphMatcherGroup(domains []*Domain, not bool) (DomainMatcher, error) + func NewSuccinctMatcherGroup(domains []*Domain, not bool) (DomainMatcher, error) + type Domain_Attribute struct + Key string + TypedValue isDomain_Attribute_TypedValue + func (*Domain_Attribute) Descriptor() ([]byte, []int) + func (*Domain_Attribute) ProtoMessage() + func (m *Domain_Attribute) GetTypedValue() isDomain_Attribute_TypedValue + func (x *Domain_Attribute) GetBoolValue() bool + func (x *Domain_Attribute) GetIntValue() int64 + func (x *Domain_Attribute) GetKey() string + func (x *Domain_Attribute) ProtoReflect() protoreflect.Message + func (x *Domain_Attribute) Reset() + func (x *Domain_Attribute) String() string + type Domain_Attribute_BoolValue struct + BoolValue bool + type Domain_Attribute_IntValue struct + IntValue int64 + type Domain_Type int32 + const Domain_Domain + const Domain_Full + const Domain_Plain + const Domain_Regex + func (Domain_Type) Descriptor() protoreflect.EnumDescriptor + func (Domain_Type) EnumDescriptor() ([]byte, []int) + func (Domain_Type) Type() protoreflect.EnumType + func (x Domain_Type) Enum() *Domain_Type + func (x Domain_Type) Number() protoreflect.EnumNumber + func (x Domain_Type) String() string + type GeoIP struct + Cidr []*CIDR + CountryCode string + ReverseMatch bool + func (*GeoIP) Descriptor() ([]byte, []int) + func (*GeoIP) ProtoMessage() + func (x *GeoIP) GetCidr() []*CIDR + func (x *GeoIP) GetCountryCode() string + func (x *GeoIP) GetReverseMatch() bool + func (x *GeoIP) ProtoReflect() protoreflect.Message + func (x *GeoIP) Reset() + func (x *GeoIP) String() string + type GeoIPList struct + Entry []*GeoIP + func (*GeoIPList) Descriptor() ([]byte, []int) + func (*GeoIPList) ProtoMessage() + func (x *GeoIPList) GetEntry() []*GeoIP + func (x *GeoIPList) ProtoReflect() protoreflect.Message + func (x *GeoIPList) Reset() + func (x *GeoIPList) String() string + type GeoIPMatcher struct + func NewGeoIPMatcher(geoip *GeoIP) (*GeoIPMatcher, error) + func (m *GeoIPMatcher) Init(cidrs []*CIDR) error + func (m *GeoIPMatcher) Match(ip netip.Addr) bool + func (m *GeoIPMatcher) SetReverseMatch(isReverseMatch bool) + type GeoIPMatcherContainer struct + func (c *GeoIPMatcherContainer) Add(geoip *GeoIP) (*GeoIPMatcher, error) + type GeoSite struct + CountryCode string + Domain []*Domain + func (*GeoSite) Descriptor() ([]byte, []int) + func (*GeoSite) ProtoMessage() + func (x *GeoSite) GetCountryCode() string + func (x *GeoSite) GetDomain() []*Domain + func (x *GeoSite) ProtoReflect() protoreflect.Message + func (x *GeoSite) Reset() + func (x *GeoSite) String() string + type GeoSiteList struct + Entry []*GeoSite + func (*GeoSiteList) Descriptor() ([]byte, []int) + func (*GeoSiteList) ProtoMessage() + func (x *GeoSiteList) GetEntry() []*GeoSite + func (x *GeoSiteList) ProtoReflect() protoreflect.Message + func (x *GeoSiteList) Reset() + func (x *GeoSiteList) String() string + type MultiGeoIPMatcher struct + func NewMultiGeoIPMatcher(geoips []*GeoIP) (*MultiGeoIPMatcher, error) + func (m *MultiGeoIPMatcher) ApplyIp(ip netip.Addr) bool