예제 #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,
	}
}
예제 #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,
	}
}