extractor

package
v0.0.0-...-2bbc632 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

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

Extractor is a contacts extractor.

func NewExtractor

func NewExtractor(
	phoneValidator, emailValidator, vkValidator validator,
) *Extractor

NewExtractor returns the extractor object.

func (*Extractor) AddSource

func (e *Extractor) AddSource(id string, source sourceExtractor)

AddSource adds a source.

func (*Extractor) Extract

func (e *Extractor) Extract(
	sources []string, contacts []string,
) map[string][]string

Extract extracts contacts from the sources.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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