Skip to content
This repository has been archived by the owner on May 6, 2018. It is now read-only.

Commit

Permalink
SentStatus -> EmailStatus
Browse files Browse the repository at this point in the history
Relates to #19
  • Loading branch information
ajvb committed Feb 21, 2014
1 parent cd7c849 commit 3ab139c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions types/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ var (
EmailQueue = make(chan *Email)
)

type SentStatus string
type EmailStatus string

const (
QUEUED SentStatus = "queued"
SENDING SentStatus = "sending"
SUCCESS SentStatus = "success"
FAILED SentStatus = "failed"
QUEUED EmailStatus = "queued"
SENDING EmailStatus = "sending"
SUCCESS EmailStatus = "success"
FAILED EmailStatus = "failed"
)

type Email struct {
Expand All @@ -31,7 +31,7 @@ type Email struct {
Subject string `json:"name"`
Body string `json:"body"`

Status SentStatus `json:"status"`
Status EmailStatus `json:"status"`

CreatedAt time.Time `json:"created_at"`
ModifiedAt time.Time `json:"modified_at"`
Expand Down

0 comments on commit 3ab139c

Please sign in to comment.