-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified the implementation to reduce data required to be feed to t…
…he program.
- Loading branch information
1 parent
b5cb22d
commit 736f335
Showing
5 changed files
with
13 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
{ | ||
"id": "ABCD-1234", | ||
"email": { | ||
"from": "uqehugh3@uq.edu.au", | ||
"to": "your-email@uq.edu.au", | ||
"subject": "CSSE6400: Cloud Assignment Help", | ||
"body": "Hey Valued Student\nHows the assignment going?\nRegards\nEvan Hughes", | ||
"headers": { | ||
"X-Customer-Id": "1234", | ||
"X-Message-Id": "ABCD-1234", | ||
"X-SpamHammer-Fingerprint": "0|12" | ||
}, | ||
"date": "2024-01-01T12:00:00Z" | ||
} | ||
"content": "Hey Valued Student\nHows the assignment going?\nRegards\nEvan Hughes", | ||
"metadata": "1|8" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
package service | ||
|
||
import "time" | ||
|
||
type Request struct { | ||
ID string `json:"id"` | ||
Email struct { | ||
From string `json:"from"` | ||
To string `json:"to"` | ||
Subject string `json:"subject"` | ||
Body string `json:"body"` | ||
Headers struct { | ||
Customer string `json:"X-Customer-Id"` | ||
MessageId string `json:"X-Message-Id"` | ||
Seed string `json:"X-SpamHammer-Fingerprint"` | ||
} `json:"headers"` | ||
Date time.Time `json:"date"` | ||
} `json:"email"` | ||
ID string `json:"id"` | ||
Content string `json:"content"` | ||
Metadata string `json:"metadata"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters