storage

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
	Open(bool) error
	Close() error
	Get(string, string) (*alias.Alias, error)
	Put(alias.Alias, bool) error
	Update(alias.Alias, bool) error
	Search(alias.Filter, bool) (alias.Aliases, error)
	Suspend(string, string) error
	Unsuspend(string, string) error
	Delete(string, string) error
}

Provider is implemented by any storage provider giving the ability to manipulate the storage of email aliases and associated metadata separate from the email system being used.

type ProviderFactory

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

ProviderFactory is implemented by any storage 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