hermes

package module
v0.0.0-...-56a2adc Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2017 License: MIT Imports: 4 Imported by: 0

README

HERMES

Travis Widget Report Card GoDoc

About project technology

  • TODO: More info here

WorkInProgress

This project is under construction and could be not work correctly right now. If you wish to test it you can:

  • Clone it

    $ mkdir -p $GOPATH/src/github.com/iver/
    $ git clone http://github.com/iver/hermes $GOPATH/src/github.com/iver/hermes
    $ cd $GOPATH/src/github.com/iver/hermes
    
  • Set environment variables

    export MANDRILL_KEY="YOUR-MANDRILL-APIKEY"
    export SENDGRID_API_KEY="YOUR-SENDGRID-APIKEY"
    export MG_API_KEY="YOUR-MAILGUN-PRIVATE-APIKEY"
    export MG_PUBLIC_API_KEY="YOUR MAILGUN-PUBLIC-APIKEY"
    export MG_DOMAIN="YOUR-MAILGUN-DOMAIN"
    
    export SENDGRID_USER="someuser@email.com"
    export MG_EMAIL_TO="someuser@email.com"
    export MANDRILL_USER="someuser@email.com"
    
  • Compile it

    $ make build
    
  • Run it

    $ cd bin/
    $ ./hermes
    

Content

Why hermes

Howto install

  • TODO: Add descriptions and steps

Project organization

TODO: Add description



Copyright (c) 2014-2016 Iván Jaimes. See LICENSE for details.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultOrder = []string{"mailchimp", "mailgun", "sendgrid"}
)

Functions

This section is empty.

Types

type EmailProvider

type EmailProvider struct {
	ConfigFile string
	Providers  *ring.Ring
}

func New

func New(cfile string) (e *EmailProvider, err error)

func (*EmailProvider) NewEmail

func (e *EmailProvider) NewEmail(sn interface{}, s string, t interface{}, r interface{}) (email interface{}, err error)

func (*EmailProvider) NextProvider

func (e *EmailProvider) NextProvider()

func (*EmailProvider) Order

func (e *EmailProvider) Order() string

func (*EmailProvider) Selected

func (e *EmailProvider) Selected() (pn string)

func (*EmailProvider) Send

func (e *EmailProvider) Send(m interface{}) (err error)

Send ...

func (*EmailProvider) Sort

func (e *EmailProvider) Sort(order ...string) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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