notification

package
v0.0.0-...-73d3301 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2016 License: GPL-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package notification is the notification service

Package notification is the notification service

Index

Constants

This section is empty.

Variables

View Source
var (
	// Template needed to send an e-mail not found
	ErrTemplateNotFound = errors.New("Template not found")
)

List of possible errors that can occur when calling functions from this file. Other erros can also occurs from low level layers

View Source
var (
	// Extension used in template files. Used for now as a variable for unit tests and integration
	// tests that can only predefine temporary filenames
	TemplateExtension string = ".tmpl"
)

Functions

func LoadTemplates

func LoadTemplates() error

Load all templates from disk. The templates files should be in the templates path and must use as filename the language of the template (ex. pt-BR, pt, en-US, en). The language should follow the IANA format

func Notify

func Notify()

Notify is responsable for selecting the domains that should be notified in the system. It will send alert e-mails for each owner of a domain

Types

This section is empty.

Directories

Path Synopsis
Package protocol describes the objects used in e-mail templates
Package protocol describes the objects used in e-mail templates

Jump to

Keyboard shortcuts

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