service

package
v0.0.0-...-ef76b7a Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(db *sql.DB, xmlReader io.Reader) error

Types

type Notifier

type Notifier struct {
	Config models.Config
}

Notifier is used to notify the admins of certain events. Currently it only supports Emails.

func MapNotifier

func MapNotifier(cfg models.Config) *Notifier

MapNotifier maps the Notifier type for the martini framework.

func (*Notifier) CommentCreated

func (notifier *Notifier) CommentCreated(comment *models.Comment)

CommentCreated sends out a notification if a comment was added. It respects the 'notify' setting in the config file.

Jump to

Keyboard shortcuts

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