1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-28 06:15:59 +00:00

Add FromAlias to the Mail service and some iriscontrol fixes

This commit is contained in:
Makis Maropoulos
2016-06-06 13:25:09 +03:00
parent 48aaca5bc0
commit 86694df84e
7 changed files with 38 additions and 11 deletions

View File

@@ -28,6 +28,8 @@ type irisControlPlugin struct {
//infos
routes *routesinfo.Plugin
plugins []PluginInfo
// last time the server was on
lastOperationDate time.Time
//
authFunc iris.HandlerFunc
@@ -88,6 +90,7 @@ func (i *irisControlPlugin) PostListen(s *iris.Iris) {
if i.station == nil {
i.station = s
i.stationServer = i.station.Server()
i.lastOperationDate = time.Now()
i.startControlPanel()
}
@@ -106,6 +109,7 @@ func (i *irisControlPlugin) Destroy() {
i.options = config.IrisControl{}
i.routes = nil
i.station = nil
i.lastOperationDate = config.CookieExpireNever
i.server.Close()
i.pluginContainer = nil
i.authFunc = nil