示例#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,
	}
}