Files
phoneinfoga/examples/plugin
sundowndev 03a16ef5f3 refactor: scanner interface
Rename method ShouldRun to DryRun, rename method Scan to Run. DryRun now returns an error instead of a bool.
2022-09-16 13:05:56 +04:00
..
2022-09-16 13:05:56 +04:00
…

Example plugin

This is an example scanner plugin.

Build

$ go build -buildmode=plugin ./customscanner.go

Depending on your OS, it will create a plugin file (e.g. customscanner.so for linux).

Usage

You can now use this plugin with phoneinfoga.

$ phoneinfoga scan -n <number> --plugin ./customscanner.so

Running scan for phone number <number>...

Results for customscanner
Valid: true
Info: This number is known for scams!

...

The --plugin flag can be used multiple times to use several plugins at once.