go vendor
This commit is contained in:
18
vendor/github.com/revel/modules/server-engine/newrelic/app/controllers/RelicController.go
generated
vendored
Normal file
18
vendor/github.com/revel/modules/server-engine/newrelic/app/controllers/RelicController.go
generated
vendored
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user