services

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExpired = "EXPIRED"
View Source
var ErrFormatInvalid = "FORMAT_INVALID"
View Source
var ErrLocked = "LOCKED"
View Source
var ErrMissing = "MISSING"
View Source
var ErrNotFound = "NOT_FOUND"
View Source
var ErrTaken = "TAKEN"

Functions

func DisposableGetCacheAll

func DisposableGetCacheAll(app *app.App) (*[]string, error)

func DisposableGetDBAll

func DisposableGetDBAll(app *app.App) (*[]string, error)

func FreeEmailGetDBAll

func FreeEmailGetDBAll(app *app.App) (*[]string, error)

func GenericGetAll

func GenericGetAll(app *app.App) (*[]string, error)

func GenericGetEmail

func GenericGetEmail(app *app.App, emailAddress string) (*bool, error)

func ProxyGetCacheAll

func ProxyGetCacheAll(app *app.App) []string

func ProxyGetDBAll

func ProxyGetDBAll(app *app.App) (*[]models.Proxy, error)

func SpamEmailGetCacheAll

func SpamEmailGetCacheAll(app *app.App) (*[]string, error)

func SpamEmailGetDBAll

func SpamEmailGetDBAll(app *app.App) (*[]string, error)

func SpamGetCacheAll

func SpamGetCacheAll(app *app.App) []string

func SpamGetDBAll

func SpamGetDBAll(app *app.App) (*[]string, error)

func TorGetCacheAll

func TorGetCacheAll(app *app.App) (*[]string, error)

func TorGetDBAll

func TorGetDBAll(app *app.App) (*[]string, error)

func ValidateAddress

func ValidateAddress(addy *entity.Address) (bool, error)

func VpnGetCacheAll

func VpnGetCacheAll(app *app.App) (*[]string, error)

func VpnGetDBAll

func VpnGetDBAll(app *app.App) (*[]string, error)

Types

type Email

type Email struct {
	Disposable bool           `json:"disposable"`
	Free       bool           `json:"free"`
	Spam       bool           `json:"spam"`
	Generic    bool           `json:"generic"`
	CatchAll   bool           `json:"catchall"`
	Leaked     bool           `json:"leaked"`
	Valid      bool           `json:"valid"`
	Domain     *entity.Domain `json:"domain"`
	// contains filtered or unexported fields
}

func (*Email) Calculate

func (e *Email) Calculate(app *app.App, email string)

func (*Email) EmailService

func (e *Email) EmailService() (*entity.EmailResponse, error)

func (*Email) ScoreEmail

func (e *Email) ScoreEmail() (int8, error)

type FieldError

type FieldError struct {
	Field   string `json:"field"`
	Message string `json:"message"`
}

func (FieldError) Error

func (e FieldError) Error() string

func (FieldError) String

func (e FieldError) String() string

type FieldErrors

type FieldErrors []FieldError

func (FieldErrors) Error

func (es FieldErrors) Error() string

type IP

type IP struct {
	IPAddress    string
	Proxy        *models.Proxy
	Tor          *models.Tor
	Vpn          *models.Vpn
	Spam         *models.Spam
	CountryCode  string
	Timezone     string
	City         string
	PostalCode   string
	ASN          uint
	Organization string
	Longitude    float64
	Latitude     float64
	// contains filtered or unexported fields
}

func (*IP) Calculate

func (i *IP) Calculate(app *app.App, ipaddress string)

func (*IP) IPService

func (i *IP) IPService() (*entity.IPAddressResponse, error)

func (*IP) ScoreIP

func (i *IP) ScoreIP() (int8, error)

Jump to

Keyboard shortcuts

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