config

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PublicAddress    string
	GRPCAddress      string
	Env              string
	AutoTLS          bool
	Proxy            Proxy
	External         External
	SMTP             SMTP
	Debug            bool
	Database         Database
	ErrorReporter    ErrorReporter
	Email            Email
	IP               IP
	RateLimit        RateLimit
	Crontab          Crontab
	ServiceDiscovery ServiceDiscovery
	Resource         Resource
}

type Crontab

type Crontab struct {
	VPN     int
	Tor     int
	Proxy   int
	Spam    int
	Maxmind int
}

type Database

type Database struct {
	Type     string
	Host     string
	Port     int
	Username string
	Password string
	Name     string
	TimeZone string
	SSL      bool
}

type DomainStatement

type DomainStatement struct {
	Week     int8
	Month    int8
	Year     int8
	YearPlus int8
}

type Email

type Email struct {
	Score EmailScore
}

type EmailScore

type EmailScore struct {
	Disposable Statement
	Free       Statement
	Spam       Statement
	Valid      Statement
	Generic    Statement
	CatchAll   Statement
	Leaked     Statement
	Domain     DomainStatement
}

type ErrorReporter

type ErrorReporter struct {
	Default             string
	AirbrakeCredentials string
}

type External

type External struct {
	MaxmindDest string
	IP2Location string
}

type IP

type IP struct {
	Score IPScore
}

type IPScore

type IPScore struct {
	Proxy Statement
	Spam  Statement
	Tor   Statement
	VPN   Statement
}

type Proxy

type Proxy struct {
	CacheDurationMinutes int
	Workers              int
}

type RateLimit

type RateLimit struct {
	Enabled    bool
	Max        int
	Expiration int
}

type Resource

type Resource struct {
	EmailDisposalList []string
	EmailFreeList     []string
	EmailSpamList     []string
	IPVPNList         []string
	IPOpenVPNList     []string
	IPTorList         []string
	IPProxyList       []string
	IPSpamList        []string
	ExpressionList    []string
}

type SMTP

type SMTP struct {
	Hostname    string
	MailAddress string
}

type ServiceDiscovery

type ServiceDiscovery struct {
	Service  string
	NodeID   string
	Endpoint string
}

type Statement

type Statement struct {
	Yes int8
	No  int8
}

Jump to

Keyboard shortcuts

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