Documentation ¶
Index ¶
- Variables
- type Domain
- func (*Domain) Descriptor() ([]byte, []int)deprecated
- func (x *Domain) GetAttribute() []*Domain_Attribute
- func (x *Domain) GetType() Domain_Type
- func (x *Domain) GetValue() string
- func (*Domain) ProtoMessage()
- func (x *Domain) ProtoReflect() protoreflect.Message
- func (x *Domain) Reset()
- func (x *Domain) String() string
- type Domain_Attribute
- func (*Domain_Attribute) Descriptor() ([]byte, []int)deprecated
- func (x *Domain_Attribute) GetBoolValue() bool
- func (x *Domain_Attribute) GetIntValue() int64
- func (x *Domain_Attribute) GetKey() string
- func (m *Domain_Attribute) GetTypedValue() isDomain_Attribute_TypedValue
- func (*Domain_Attribute) ProtoMessage()
- func (x *Domain_Attribute) ProtoReflect() protoreflect.Message
- func (x *Domain_Attribute) Reset()
- func (x *Domain_Attribute) String() string
- type Domain_Attribute_BoolValue
- type Domain_Attribute_IntValue
- type Domain_Type
- func (Domain_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Domain_Type) Enum() *Domain_Type
- func (Domain_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Domain_Type) Number() protoreflect.EnumNumber
- func (x Domain_Type) String() string
- func (Domain_Type) Type() protoreflect.EnumType
- type SiteGroup
- type SiteGroupList
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Domain_Type_name = map[int32]string{ 0: "Plain", 1: "Regex", 2: "Domain", 3: "Full", } Domain_Type_value = map[string]int32{ "Plain": 0, "Regex": 1, "Domain": 2, "Full": 3, } )
Enum value maps for Domain_Type.
View Source
var File_geosite_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct { // Domain matching type. Type Domain_Type `protobuf:"varint,1,opt,name=type,proto3,enum=proto.geosite.Domain_Type" json:"type,omitempty"` // Domain value. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Attributes of this domain. May be used for filtering. Attribute []*Domain_Attribute `protobuf:"bytes,3,rep,name=attribute,proto3" json:"attribute,omitempty"` // contains filtered or unexported fields }
Domain for routing decision.
func (*Domain) Descriptor
deprecated
func (*Domain) GetAttribute ¶
func (x *Domain) GetAttribute() []*Domain_Attribute
func (*Domain) GetType ¶
func (x *Domain) GetType() Domain_Type
func (*Domain) ProtoMessage ¶
func (*Domain) ProtoMessage()
func (*Domain) ProtoReflect ¶
func (x *Domain) ProtoReflect() protoreflect.Message
type Domain_Attribute ¶
type Domain_Attribute struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Types that are assignable to TypedValue: // // *Domain_Attribute_BoolValue // *Domain_Attribute_IntValue TypedValue isDomain_Attribute_TypedValue `protobuf_oneof:"typed_value"` // contains filtered or unexported fields }
func (*Domain_Attribute) Descriptor
deprecated
func (*Domain_Attribute) Descriptor() ([]byte, []int)
Deprecated: Use Domain_Attribute.ProtoReflect.Descriptor instead.
func (*Domain_Attribute) GetBoolValue ¶
func (x *Domain_Attribute) GetBoolValue() bool
func (*Domain_Attribute) GetIntValue ¶
func (x *Domain_Attribute) GetIntValue() int64
func (*Domain_Attribute) GetKey ¶
func (x *Domain_Attribute) GetKey() string
func (*Domain_Attribute) GetTypedValue ¶
func (m *Domain_Attribute) GetTypedValue() isDomain_Attribute_TypedValue
func (*Domain_Attribute) ProtoMessage ¶
func (*Domain_Attribute) ProtoMessage()
func (*Domain_Attribute) ProtoReflect ¶
func (x *Domain_Attribute) ProtoReflect() protoreflect.Message
func (*Domain_Attribute) Reset ¶
func (x *Domain_Attribute) Reset()
func (*Domain_Attribute) String ¶
func (x *Domain_Attribute) String() string
type Domain_Attribute_BoolValue ¶
type Domain_Attribute_BoolValue struct {
BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
type Domain_Attribute_IntValue ¶
type Domain_Attribute_IntValue struct {
IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
}
type Domain_Type ¶
type Domain_Type int32
Type of domain value.
const ( // The value is used as is. Domain_Plain Domain_Type = 0 // The value is used as a regular expression. Domain_Regex Domain_Type = 1 // The value is a root domain. Domain_Domain Domain_Type = 2 // The value is a domain. Domain_Full Domain_Type = 3 )
func (Domain_Type) Descriptor ¶
func (Domain_Type) Descriptor() protoreflect.EnumDescriptor
func (Domain_Type) Enum ¶
func (x Domain_Type) Enum() *Domain_Type
func (Domain_Type) EnumDescriptor
deprecated
func (Domain_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Domain_Type.Descriptor instead.
func (Domain_Type) Number ¶
func (x Domain_Type) Number() protoreflect.EnumNumber
func (Domain_Type) String ¶
func (x Domain_Type) String() string
func (Domain_Type) Type ¶
func (Domain_Type) Type() protoreflect.EnumType
type SiteGroup ¶
type SiteGroup struct { Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` Domain []*Domain `protobuf:"bytes,2,rep,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
func (*SiteGroup) Descriptor
deprecated
func (*SiteGroup) ProtoMessage ¶
func (*SiteGroup) ProtoMessage()
func (*SiteGroup) ProtoReflect ¶
func (x *SiteGroup) ProtoReflect() protoreflect.Message
type SiteGroupList ¶
type SiteGroupList struct { SiteGroup []*SiteGroup `protobuf:"bytes,1,rep,name=site_group,json=siteGroup,proto3" json:"site_group,omitempty"` // contains filtered or unexported fields }
func (*SiteGroupList) Descriptor
deprecated
func (*SiteGroupList) Descriptor() ([]byte, []int)
Deprecated: Use SiteGroupList.ProtoReflect.Descriptor instead.
func (*SiteGroupList) GetSiteGroup ¶
func (x *SiteGroupList) GetSiteGroup() []*SiteGroup
func (*SiteGroupList) ProtoMessage ¶
func (*SiteGroupList) ProtoMessage()
func (*SiteGroupList) ProtoReflect ¶
func (x *SiteGroupList) ProtoReflect() protoreflect.Message
func (*SiteGroupList) Reset ¶
func (x *SiteGroupList) Reset()
func (*SiteGroupList) String ¶
func (x *SiteGroupList) String() string
Click to show internal directories.
Click to hide internal directories.