go vendor

This commit is contained in:
lealife
2017-11-30 19:55:33 +08:00
parent 2856da6888
commit 0fb92efbf3
670 changed files with 199010 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package controllers
import (
"github.com/newrelic/go-agent"
"github.com/revel/modules/server-engine/newrelic"
"github.com/revel/revel"
)
type RelicController struct {
*revel.Controller
}
func (r *RelicController) GetRelicApplication() newrelic.Application {
if app, ok := revel.CurrentEngine.(*revelnewrelic.ServerNewRelic); ok {
return app.NewRelicApp
}
return nil
}