email

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

generated by go-extpoints -- DO NOT EDIT

Index

Constants

This section is empty.

Variables

View Source
var ProviderFactories = &providerFactoryExt{
	newExtensionPoint(new(ProviderFactory)),
}

Functions

func RegisterExtension

func RegisterExtension(extension interface{}, name string) []string

func UnregisterExtension

func UnregisterExtension(name string) []string

Types

type Provider

type Provider interface {
	Type() string
	Description() string
	AliasCreate(string, string, ...string) error
	AliasDelete(string, string, ...string) error
	AliasList(string, ...string) (alias.Aliases, error)
}

Provider is implemented by any email provider giving the ability to create, list and delete aliases on the email system.

type ProviderFactory

type ProviderFactory interface {
	New() (Provider, error)
	Config() error
}

ProviderFactory is implemented by any email provider in order to create new instances and configure them for use. The configuration values are stored in and read from Viper.

Jump to

Keyboard shortcuts

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