udwIpCountryV2Map

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	Buf                    []byte            `json:",emitempty"`
	Ipv4StartNode          uint32            `json:",emitempty"`
	NodeNum                uint32            `json:",emitempty"`
	IsoIdCodeMap           map[uint32]string `json:",emitempty"`
	IsoIdCodeList          []string          `json:",emitempty"`
	Ipv4FirstByteNodeCache []uint32          `json:",emitempty"`
	CheckSum               string            `json:",emitempty"`
}

func (*Reader) CheckValid

func (r *Reader) CheckValid() string

func (*Reader) CompatibleToOldVersion

func (r *Reader) CompatibleToOldVersion()

func (*Reader) GetAllCountryCode

func (r *Reader) GetAllCountryCode() (output []string)

func (*Reader) MustGetCountryIsoCode

func (r *Reader) MustGetCountryIsoCode(ip net.IP) (code string)

func (*Reader) MustGetCountryIsoCodeByString

func (r *Reader) MustGetCountryIsoCodeByString(ip string) (code string)

func (*Reader) ReadNode

func (r *Reader) ReadNode(nodeNumber uint32, index uint8) uint32

Jump to

Keyboard shortcuts

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