mirror of
https://github.com/nikoksr/notify.git
synced 2024-12-12 10:13:59 +02:00
16 lines
327 B
Go
16 lines
327 B
Go
package mailgun
|
|
|
|
import (
|
|
"github.com/mailgun/mailgun-go/v4"
|
|
)
|
|
|
|
// Option describes a functional parameter for the Mailgun constructor.
|
|
type Option func(*Mailgun)
|
|
|
|
// WithEurope sets the API Mailgun base url to Europe region.
|
|
func WithEurope() Option {
|
|
return func(m *Mailgun) {
|
|
m.client.SetAPIBase(mailgun.APIBaseEU)
|
|
}
|
|
}
|