reader

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 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