tokenizer

package
v0.0.0-...-a579f18 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Tokenizers for various formats, that satisfies the password.Tokenizer interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineReader

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

LineReader will return one line when Next() is called.

func NewBz2Line

func NewBz2Line(r io.Reader) *LineReader

NewBz2Line reads one password per line until \0xa (newline) is encountered. The input is assumed to be bzip2 compressed. Input is streamed. If r does not also implement io.ByteReader, the decompressor may read more data than necessary from in.

func NewGzLine

func NewGzLine(r io.Reader) (*LineReader, error)

NewGzLine reads one password per line until \0xa (newline) is encountered. The input is assumed to be gzip compressed. Input is streamed.

func NewLine

func NewLine(r io.Reader) *LineReader

NewLine reads one password per line until \0xa (newline) is encountered. Input is streamed.

func (*LineReader) Close

func (l *LineReader) Close() error

Should be called when finished

func (*LineReader) Next

func (l *LineReader) Next() (string, error)

Next returns the data on the next line. Will return io.EOF when there is no more data.

Jump to

Keyboard shortcuts

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