compressor

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filepath string) (out chan net.IP)

Load reads a file line by line and returns a channel of net.IP

func Store

func Store(filePath string, dataChan chan []byte)

Types

type Compressor

type Compressor struct{}

func NewCompressor

func NewCompressor() Compressor

func (Compressor) Load

func (p Compressor) Load(filePath string) chan net.IP

func (Compressor) Serialize

func (p Compressor) Serialize(ipRangeChan chan model.IPRange) chan []byte

func (Compressor) Squeeze

func (p Compressor) Squeeze(ipChan chan net.IP) chan model.IPRange

func (Compressor) Store

func (p Compressor) Store(s string, dataChan chan []byte)

Jump to

Keyboard shortcuts

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