Ejemplo n.º 1
0
func New(mercuryToken, postmarkToken, fromEmailAddress string, kindlegenBinary string, logger *log.Logger) *App {
	return &App{
		kindlegen: kindlegenBinary,
		postmark:  postmark.New(postmarkToken),
		mercury:   mercury.New(mercuryToken, nil),
		from:      fromEmailAddress,
	}
}
Ejemplo n.º 2
0
func New(readabilityToken, postmarkToken, fromEmailAddress string, kindlegenBinary string, logger *log.Logger) *App {
	return &App{
		kindlegen:   kindlegenBinary,
		postmark:    postmark.New(postmarkToken),
		readability: readability.New(readabilityToken, nil),
		from:        fromEmailAddress,
	}
}