parseline

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidLineParser = errors.New("The requested line parser does not exist")

ErrInvalidLineParser occurs when a line parser that does not exists is requested

Functions

func ParserExists

func ParserExists(name string) bool

ParserExists checks if the specified line parser exists

Types

type Record

type Record struct {
	Source   string
	SourceID int64
	Username string
	Email    string
	EmailRev string
	Hash     string
	Password string
	Extra    string
}

A Record represents a single row in the database

func ParseLine

func ParseLine(name, line, source string) (Record, error)

ParseLine parses a single line with the requested line parser

Jump to

Keyboard shortcuts

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