proxy

package
v0.0.0-...-8ac8335 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartProxy

func StartProxy(proxyConf string) error

StartProxy starts the mail proxy in order to add a middleware layer between YM and internet

Types

type Configuration

type Configuration struct {
	// Port of the proxy
	Port int `yaml:"port"`
	// TCP or UNIX address to listen on
	Addr string `yaml:"listen_address"`
	// MaxRecipients is the number of maximum recipients in the email
	MaxRecipients int `yaml:"max_recipients"`
	// YMAddr is the address of the YM entrypoint
	YMAddr string `yaml:"yulmails_address"`
	// TODO: add TLS configuration
	YMAPI string `yaml:"yulmails_api"`
}

Configuration is the configuration for the mail proxy.

type Yulmails

type Yulmails interface {
	// GetDomain return a domain, nil if not found
	GetDomain(string) (*domain.Domain, error)
	// GetWhitelist return IP whitelisted for YM
	GetWhitelist() ([]string, error)
}

Yulmails is the programmatic API to use with the proxy later we will move elsewhere to be globally available

Jump to

Keyboard shortcuts

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