1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-21 19:47:03 +00:00

Resolve linter errors exposed by fixed Makefile

- TravisCI didn't like "POSIX" ::= syntax
This commit is contained in:
James Hillyerd
2018-03-09 22:01:43 -08:00
parent f8c30a678a
commit 94167fa313
10 changed files with 19 additions and 8 deletions

View File

@@ -30,6 +30,7 @@ type JSONMessageV1 struct {
Attachments []*JSONMessageAttachmentV1 `json:"attachments"`
}
// JSONMessageAttachmentV1 contains information about a MIME attachment
type JSONMessageAttachmentV1 struct {
FileName string `json:"filename"`
ContentType string `json:"content-type"`

View File

@@ -144,6 +144,8 @@ func (ml *msgListener) Close() {
}
}
// MonitorAllMessagesV1 is a web handler which upgrades the connection to a websocket and notifies
// the client of all messages received.
func MonitorAllMessagesV1(
w http.ResponseWriter, req *http.Request, ctx *web.Context) (err error) {
// Upgrade to Websocket
@@ -167,6 +169,8 @@ func MonitorAllMessagesV1(
return nil
}
// MonitorMailboxMessagesV1 is a web handler which upgrades the connection to a websocket and
// notifies the client of messages received by a particular mailbox.
func MonitorMailboxMessagesV1(
w http.ResponseWriter, req *http.Request, ctx *web.Context) (err error) {
name, err := stringutil.ParseMailboxName(ctx.Vars["name"])