email: Remove unused ID field

This commit is contained in:
Chance Zibolski 2015-09-21 15:39:29 -07:00
parent 3e08bd6619
commit b1e146b702
4 changed files with 4 additions and 8 deletions

View file

@ -65,7 +65,6 @@ func NewEmailerConfigFromFile(loc string) (EmailerConfig, error) {
}
type FakeEmailerConfig struct {
ID string `json:"id"`
}
func (cfg FakeEmailerConfig) EmailerType() string {
@ -73,7 +72,7 @@ func (cfg FakeEmailerConfig) EmailerType() string {
}
func (cfg FakeEmailerConfig) EmailerID() string {
return cfg.ID
return FakeEmailerType
}
func (cfg FakeEmailerConfig) Emailer() (Emailer, error) {

View file

@ -17,7 +17,6 @@ func init() {
}
type MailgunEmailerConfig struct {
ID string `json:"id"`
PrivateAPIKey string `json:"privateAPIKey"`
PublicAPIKey string `json:"publicAPIKey"`
Domain string `json:"domain"`
@ -28,7 +27,7 @@ func (cfg MailgunEmailerConfig) EmailerType() string {
}
func (cfg MailgunEmailerConfig) EmailerID() string {
return cfg.ID
return MailgunEmailerType
}
func (cfg MailgunEmailerConfig) Emailer() (Emailer, error) {

View file

@ -16,7 +16,6 @@ func init() {
}
type SmtpEmailerConfig struct {
ID string `json:"id"`
Host string `json:"host"`
Port int `json:"port"`
Auth string `json:"auth"`
@ -29,7 +28,7 @@ func (cfg SmtpEmailerConfig) EmailerType() string {
}
func (cfg SmtpEmailerConfig) EmailerID() string {
return cfg.ID
return SmtpEmailerType
}
func (cfg SmtpEmailerConfig) Emailer() (Emailer, error) {

View file

@ -1,4 +1,3 @@
{
"type": "fake",
"id": "fake"
"type": "fake"
}