v2ray

package
v0.0.0-...-724fbfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: CC-BY-SA-4.0 Imports: 18 Imported by: 1

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) Descriptor() ([]byte, []int)

Deprecated: Use CIDR.ProtoReflect.Descriptor instead.

func (*CIDR) GetIp

func (x *CIDR) GetIp() []byte

func (*CIDR) GetPrefix

func (x *CIDR) GetPrefix() uint32

func (*CIDR) ProtoMessage

func (*CIDR) ProtoMessage()

func (*CIDR) ProtoReflect

func (x *CIDR) ProtoReflect() protoreflect.Message

func (*CIDR) Reset

func (x *CIDR) Reset()

func (*CIDR) String

func (x *CIDR) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use GeoIP.ProtoReflect.Descriptor instead.

func (*GeoIP) GetCidr

func (x *GeoIP) GetCidr() []*CIDR

func (*GeoIP) GetCountryCode

func (x *GeoIP) GetCountryCode() string

func (*GeoIP) ProtoMessage

func (*GeoIP) ProtoMessage()

func (*GeoIP) ProtoReflect

func (x *GeoIP) ProtoReflect() protoreflect.Message

func (*GeoIP) Reset

func (x *GeoIP) Reset()

func (*GeoIP) String

func (x *GeoIP) String() string

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

func (*GeoIPDatIn) Input

func (g *GeoIPDatIn) Input(container lib.Container) (lib.Container, error)

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

func (*GeoIPDatOut) Output

func (g *GeoIPDatOut) Output(container lib.Container) error

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) Descriptor() ([]byte, []int)

Deprecated: Use GeoIPList.ProtoReflect.Descriptor instead.

func (*GeoIPList) GetEntry

func (x *GeoIPList) GetEntry() []*GeoIP

func (*GeoIPList) ProtoMessage

func (*GeoIPList) ProtoMessage()

func (*GeoIPList) ProtoReflect

func (x *GeoIPList) ProtoReflect() protoreflect.Message

func (*GeoIPList) Reset

func (x *GeoIPList) Reset()

func (*GeoIPList) String

func (x *GeoIPList) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL