Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeGeoIPdatIn = "v2rayGeoIPDat" DescGeoIPdatIn = "Convert V2Ray GeoIP dat to other formats" )
View Source
const ( TypeGeoIPdatOut = "v2rayGeoIPDat" DescGeoIPdatOut = "Convert data to V2Ray GeoIP dat format" )
Variables ¶
View Source
var File_geoip_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CIDR ¶
type CIDR struct { // IP address, should be either 4 or 16 bytes. Ip []byte `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` // Number of leading ones in the network mask. Prefix uint32 `protobuf:"varint,2,opt,name=prefix,proto3" json:"prefix,omitempty"` // contains filtered or unexported fields }
func (*CIDR) Descriptor
deprecated
func (*CIDR) ProtoMessage ¶
func (*CIDR) ProtoMessage()
func (*CIDR) ProtoReflect ¶
func (x *CIDR) ProtoReflect() protoreflect.Message
type GeoIP ¶
type GeoIP struct { CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` Cidr []*CIDR `protobuf:"bytes,2,rep,name=cidr,proto3" json:"cidr,omitempty"` // contains filtered or unexported fields }
func (*GeoIP) Descriptor
deprecated
func (*GeoIP) GetCountryCode ¶
func (*GeoIP) ProtoMessage ¶
func (*GeoIP) ProtoMessage()
func (*GeoIP) ProtoReflect ¶
func (x *GeoIP) ProtoReflect() protoreflect.Message
type GeoIPDatIn ¶
type GeoIPDatIn struct { Type string Action lib.Action Description string URI string Want map[string]bool OnlyIPType lib.IPType }
func (*GeoIPDatIn) GetAction ¶
func (g *GeoIPDatIn) GetAction() lib.Action
func (*GeoIPDatIn) GetDescription ¶
func (g *GeoIPDatIn) GetDescription() string
func (*GeoIPDatIn) GetType ¶
func (g *GeoIPDatIn) GetType() string
type GeoIPDatOut ¶
type GeoIPDatOut struct { Type string Action lib.Action Description string OutputName string OutputDir string Want []string Exclude []string OneFilePerList bool OnlyIPType lib.IPType }
func (*GeoIPDatOut) GetAction ¶
func (g *GeoIPDatOut) GetAction() lib.Action
func (*GeoIPDatOut) GetDescription ¶
func (g *GeoIPDatOut) GetDescription() string
func (*GeoIPDatOut) GetType ¶
func (g *GeoIPDatOut) GetType() string
type GeoIPList ¶
type GeoIPList struct { Entry []*GeoIP `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"` // contains filtered or unexported fields }
func (*GeoIPList) Descriptor
deprecated
func (*GeoIPList) ProtoMessage ¶
func (*GeoIPList) ProtoMessage()
func (*GeoIPList) ProtoReflect ¶
func (x *GeoIPList) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.