Real-time updates using EventSource

This commit is contained in:
Ian Kent 2014-04-27 23:38:43 +01:00
parent 034f683d93
commit 2943924dff
9 changed files with 418 additions and 280 deletions

View file

@ -19,6 +19,30 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
$scope.eventDone = 0; $scope.eventDone = 0;
$scope.eventFailed = 0; $scope.eventFailed = 0;
$scope.hasEventSource = false;
$scope.source = null;
$(function() {
$scope.source = new EventSource('/api/v1/events');
$scope.source.addEventListener('message', function(e) {
$scope.$apply(function() {
$scope.messages.push(JSON.parse(e.data));
});
}, false);
$scope.source.addEventListener('open', function(e) {
$scope.$apply(function() {
$scope.hasEventSource = true;
});
}, false);
$scope.source.addEventListener('error', function(e) {
if(e.readyState == EventSource.CLOSED) {
$scope.$apply(function() {
$scope.hasEventSource = false;
});
}
}, false);
});
$scope.startEvent = function(name, args, glyphicon) { $scope.startEvent = function(name, args, glyphicon) {
var eID = guid(); var eID = guid();
console.log("Starting event '" + name + "' with id '" + eID + "'") console.log("Starting event '" + name + "' with id '" + eID + "'")

View file

@ -76,6 +76,12 @@
padding: 9px 10px; padding: 9px 10px;
pointer-events: none; pointer-events: none;
} }
.ev_good {
color: green;
}
.ev_bad {
color: red;
}
</style> </style>
</head> </head>
<body ng-controller="MailCtrl"> <body ng-controller="MailCtrl">
@ -108,6 +114,11 @@
</li> </li>
</ul> </ul>
</li> </li>
<li>
<a class="dropdown-toggle" data-toggle="dropdown" title="Event stream connected">
<span class="glyphicon glyphicon-asterisk {{ hasEventSource ? 'ev_good' : 'ev_bad' }}"></span>
</a>
</li>
<li> <li>
<form class="navbar-form navbar-left" role="search"> <form class="navbar-form navbar-left" role="search">
<div class="form-group left-inner-addon"> <div class="form-group left-inner-addon">

View file

@ -449,143 +449,155 @@ func assets_images_hog_png() ([]byte, error) {
func assets_js_controllers_js() ([]byte, error) { func assets_js_controllers_js() ([]byte, error) {
return bindata_read([]byte{ return bindata_read([]byte{
0x1f, 0x8b, 0x08, 0x00, 0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a, 0xdb, 0x9e, 0x2d,
0x33, 0x0a, 0xb3, 0x91, 0xda, 0x96, 0xf4, 0x40, 0xae, 0xb8, 0x1f, 0xb7,
0x2f, 0xb5, 0xb6, 0x11, 0x6f, 0xe7, 0xe9, 0x5d, 0x2c, 0x54, 0x7a, 0x36,
0xe3, 0xca, 0xd8, 0xbc, 0xcf, 0x62, 0x87, 0xeb, 0xd7, 0x31, 0x66, 0x78,
0x31, 0xc1, 0x95, 0x1d, 0x8e, 0x32, 0xc0, 0xcb, 0x4b, 0x89, 0x31, 0x87,
0xdb, 0xdf, 0xb4, 0xee, 0xf1, 0x5f, 0x59, 0x22, 0x9e, 0x71, 0xcd, 0x6d,
0xf8, 0x8c, 0xba, 0x4b, 0x84, 0x31, 0x4f, 0xbf, 0x3d, 0xdb, 0xc9, 0x68,
0xad, 0x06, 0xbf, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x71, 0x16, 0xf4,
0xd5, 0x55, 0x1a, 0x00, 0x00,
}, },
"assets/js/controllers.js", "assets/js/controllers.js",
) )
@ -794,134 +806,141 @@ func assets_templates_index_html() ([]byte, error) {
func assets_templates_layout_html() ([]byte, error) { func assets_templates_layout_html() ([]byte, error) {
return bindata_read([]byte{ return bindata_read([]byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0xbc, 0x58, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0xbc, 0x58,
0xdb, 0x6e, 0xdc, 0x36, 0x13, 0xbe, 0xcf, 0x53, 0x4c, 0x14, 0x18, 0xb1, 0x6d, 0x6f, 0xd4, 0xb8, 0x16, 0xfe, 0xce, 0xaf, 0x30, 0x41, 0x55, 0x5b,
0xf3, 0x47, 0xd2, 0xae, 0xfd, 0xc7, 0x70, 0xd6, 0xbb, 0x1b, 0x04, 0x76, 0x2e, 0x49, 0x66, 0xda, 0x4b, 0x55, 0xa6, 0x33, 0x83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3d, 0x6a, 0xa1, 0x0b, 0x67, 0x04,
0x41, 0xbd, 0xef, 0x99, 0x35, 0x6f, 0xfb, 0x0c, 0x71, 0xc3, 0xfe, 0x87, 0x61, 0xce, 0x07, 0xe3, 0xc0, 0xcf, 0x62, 0x05, 0x44, 0x68, 0x00, 0xad,
0xd3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xad, 0xe4, 0x7b, 0xae, 0x81, 0x28, 0x90, 0xc1, 0xb7, 0x84, 0x63, 0x71, 0xd5, 0x0e, 0x59, 0xf6, 0x23,
0x12, 0x00, 0x00, 0x41, 0xc3, 0x57, 0x42, 0xc6, 0x4c, 0x5e, 0x25, 0xee, 0xf3, 0x80, 0x61,
0x11, 0x5e, 0xc1, 0x0d, 0x8e, 0x3f, 0xc8, 0xb0, 0x19, 0xc0, 0x20, 0x9e,
0xc9, 0x38, 0xd7, 0x68, 0xd8, 0x89, 0x0e, 0xb9, 0xa9, 0x74, 0x13, 0xf8,
0x9f, 0xc8, 0x01, 0x8a, 0xb7, 0xe8, 0x03, 0x33, 0x1f, 0xab, 0x64, 0x1c,
0x70, 0x1f, 0xec, 0x3a, 0x86, 0xfb, 0xda, 0x2c, 0xeb, 0xd1, 0xcb, 0x58,
0x3c, 0xda, 0xab, 0x07, 0x5c, 0x3b, 0xd7, 0x6e, 0x9f, 0x01, 0x50, 0xba,
0xff, 0xbc, 0xfb, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xc1, 0x85, 0x02, 0x27,
0xcd, 0x13, 0x00, 0x00,
}, },
"assets/templates/layout.html", "assets/templates/layout.html",
) )

View file

@ -18,6 +18,7 @@ type Config struct {
MongoUri string MongoUri string
MongoDb string MongoDb string
MongoColl string MongoColl string
MessageChan chan interface{}
Storage interface{} Storage interface{}
Assets func(asset string) ([]byte, error) Assets func(asset string) ([]byte, error)
} }

View file

@ -3,9 +3,13 @@ package api
import ( import (
"log" "log"
"encoding/json" "encoding/json"
"fmt"
"net"
"net/http" "net/http"
"net/smtp" "net/smtp"
"strconv" "strconv"
"bufio"
"strings"
"github.com/ian-kent/MailHog/mailhog/data" "github.com/ian-kent/MailHog/mailhog/data"
"github.com/ian-kent/MailHog/mailhog/config" "github.com/ian-kent/MailHog/mailhog/config"
"github.com/ian-kent/MailHog/mailhog/storage" "github.com/ian-kent/MailHog/mailhog/storage"
@ -16,6 +20,12 @@ type APIv1 struct {
config *config.Config config *config.Config
exitChannel chan int exitChannel chan int
server *http.Server server *http.Server
eventlisteners []*EventListener
}
type EventListener struct {
conn net.Conn
bufrw *bufio.ReadWriter
} }
type ReleaseConfig struct { type ReleaseConfig struct {
@ -30,6 +40,7 @@ func CreateAPIv1(exitCh chan int, conf *config.Config, server *http.Server) *API
config: conf, config: conf,
exitChannel: exitCh, exitChannel: exitCh,
server: server, server: server,
eventlisteners: make([]*EventListener, 0),
} }
r := server.Handler.(*router.Router) r := server.Handler.(*router.Router)
@ -41,10 +52,81 @@ func CreateAPIv1(exitCh chan int, conf *config.Config, server *http.Server) *API
r.Get("^/api/v1/messages/([0-9a-f]+)/download/?$", apiv1.download) r.Get("^/api/v1/messages/([0-9a-f]+)/download/?$", apiv1.download)
r.Get("^/api/v1/messages/([0-9a-f]+)/mime/part/(\\d+)/download/?$", apiv1.download_part) r.Get("^/api/v1/messages/([0-9a-f]+)/mime/part/(\\d+)/download/?$", apiv1.download_part)
r.Post("^/api/v1/messages/([0-9a-f]+)/release/?$", apiv1.release_one) r.Post("^/api/v1/messages/([0-9a-f]+)/release/?$", apiv1.release_one)
r.Get("^/api/v1/events/?$", apiv1.eventstream)
go func() {
for {
select {
case msg := <- apiv1.config.MessageChan:
log.Println("Got message in APIv1 event stream")
bytes, _ := json.MarshalIndent(msg, "", " ")
json := string(bytes)
log.Printf("Sending content: %s\n", json)
apiv1.broadcast(json)
case <- exitCh:
break;
}
}
}()
return apiv1 return apiv1
} }
func (apiv1 *APIv1) broadcast(json string) {
log.Println("[APIv1] BROADCAST /api/v1/events")
for _, l := range apiv1.eventlisteners {
log.Printf("Sending to connection: %s\n", l.conn.RemoteAddr())
lines := strings.Split(json, "\n")
data := ""
for _, l := range lines {
data += "data: " + l + "\n"
}
data += "\n"
size := fmt.Sprintf("%X", len(data) + 1)
l.bufrw.Write([]byte(size + "\r\n"))
lines = strings.Split(data, "\n")
for _, ln := range lines {
l.bufrw.Write([]byte(ln + "\n"))
}
_, err := l.bufrw.Write([]byte("\r\n"))
if err != nil {
log.Printf("Error writing to connection: %s\n", err)
l.conn.Close()
// TODO remove from array
}
err = l.bufrw.Flush()
if err != nil {
log.Printf("Error flushing buffer: %s\n", err)
l.conn.Close()
// TODO remove from array
}
}
}
func (apiv1 *APIv1) eventstream(w http.ResponseWriter, r *http.Request, route *router.Route) {
log.Println("[APIv1] GET /api/v1/events")
w.Header().Set("Content-Type", "text/event-stream")
w.Header().Set("Cache-Control", "no-cache")
w.Header().Set("Connection", "keep-alive")
w.Write([]byte("\n\n"))
hj, ok := w.(http.Hijacker)
if !ok {
log.Println("[APIv1] Connection hijack failed")
return
}
conn, bufrw, err := hj.Hijack()
if err != nil {
log.Println("[APIv1] Connection hijack failed")
return
}
apiv1.eventlisteners = append(apiv1.eventlisteners, &EventListener{conn, bufrw})
}
func (apiv1 *APIv1) messages(w http.ResponseWriter, r *http.Request, route *router.Route) { func (apiv1 *APIv1) messages(w http.ResponseWriter, r *http.Request, route *router.Route) {
log.Println("[APIv1] GET /api/v1/messages") log.Println("[APIv1] GET /api/v1/messages")

View file

@ -81,15 +81,16 @@ func (c *Session) Parse() {
c.log("Got EOF, storing message and switching to MAIL state") c.log("Got EOF, storing message and switching to MAIL state")
//c.log("Full message data: %s", c.message.Data) //c.log("Full message data: %s", c.message.Data)
c.message.Data = strings.TrimSuffix(c.message.Data, "\r\n.\r\n") c.message.Data = strings.TrimSuffix(c.message.Data, "\r\n.\r\n")
msg := data.ParseSMTPMessage(c.message, c.conf.Hostname)
var id string var id string
var err error var err error
switch c.conf.Storage.(type) { switch c.conf.Storage.(type) {
case *storage.MongoDB: case *storage.MongoDB:
c.log("Storing message using MongoDB") c.log("Storing message using MongoDB")
id, err = c.conf.Storage.(*storage.MongoDB).Store(c.message) id, err = c.conf.Storage.(*storage.MongoDB).Store(msg)
case *storage.Memory: case *storage.Memory:
c.log("Storing message using Memory") c.log("Storing message using Memory")
id, err = c.conf.Storage.(*storage.Memory).Store(c.message) id, err = c.conf.Storage.(*storage.Memory).Store(msg)
default: default:
c.log("Unknown storage type") c.log("Unknown storage type")
// TODO send error reply // TODO send error reply
@ -101,6 +102,7 @@ func (c *Session) Parse() {
return return
} }
c.Write("250", "Ok: queued as " + id) c.Write("250", "Ok: queued as " + id)
c.conf.MessageChan <- msg
} }
} else { } else {
c.Process(strings.Trim(parts[0], "\r\n")) c.Process(strings.Trim(parts[0], "\r\n"))

View file

@ -21,12 +21,11 @@ func CreateMemory(c *config.Config) *Memory {
} }
} }
func (memory *Memory) Store(m *data.SMTPMessage) (string, error) { func (memory *Memory) Store(m *data.Message) (string, error) {
msg := data.ParseSMTPMessage(m, memory.Config.Hostname) memory.Messages[m.Id] = m
memory.Messages[msg.Id] = msg memory.MessageIndex = append(memory.MessageIndex, m.Id)
memory.MessageIndex = append(memory.MessageIndex, msg.Id) memory.MessageRIndex[m.Id] = len(memory.MessageIndex)
memory.MessageRIndex[msg.Id] = len(memory.MessageIndex) return m.Id, nil
return msg.Id, nil
} }
func (memory *Memory) List(start int, limit int) ([]*data.Message, error) { func (memory *Memory) List(start int, limit int) ([]*data.Message, error) {

View file

@ -28,14 +28,13 @@ func CreateMongoDB(c *config.Config) *MongoDB {
} }
} }
func (mongo *MongoDB) Store(m *data.SMTPMessage) (string, error) { func (mongo *MongoDB) Store(m *data.Message) (string, error) {
msg := data.ParseSMTPMessage(m, mongo.Config.Hostname) err := mongo.Collection.Insert(m)
err := mongo.Collection.Insert(msg)
if err != nil { if err != nil {
log.Printf("Error inserting message: %s", err) log.Printf("Error inserting message: %s", err)
return "", err return "", err
} }
return msg.Id, nil return m.Id, nil
} }
func (mongo *MongoDB) List(start int, limit int) (*data.Messages, error) { func (mongo *MongoDB) List(start int, limit int) (*data.Messages, error) {

View file

@ -35,6 +35,7 @@ func configure() {
MongoDb: mongodb, MongoDb: mongodb,
MongoColl: mongocoll, MongoColl: mongocoll,
Assets: Asset, Assets: Asset,
MessageChan: make(chan interface{}),
} }
if storage_type == "mongodb" { if storage_type == "mongodb" {