reader

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INDEX_BLOCK_LENGTH  = 12
	TOTAL_HEADER_LENGTH = 8192
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPReader

type IPReader struct {
	// contains filtered or unexported fields
}

IPReader tood

func New

func New(db io.Reader) (*IPReader, error)

New todo

func (*IPReader) MemorySearch

func (r *IPReader) MemorySearch(ipStr string) (*ip2region.IPInfo, error)

MemorySearch todo

func (*IPReader) TotalBlocks

func (r *IPReader) TotalBlocks() int64

TotalBlocks todo

Jump to

Keyboard shortcuts

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