Add api repo to event struct
package plugin
import (
+ "github.com/hellofresh/janus/pkg/api"
"github.com/hellofresh/janus/pkg/config"
"github.com/hellofresh/janus/pkg/notifier"
"github.com/hellofresh/janus/pkg/proxy"
@@ -22,6 +23,7 @@ const (
type OnStartup struct {
Notifier notifier.Notifier
StatsClient stats.Client
+ Repository api.Repository
MongoSession *mgo.Session
Register *proxy.Register
Config *config.Specification
@@ -30,6 +32,7 @@ type OnStartup struct {
// OnReload represents a event that happens when Janus hot reloads it's configurations
type OnReload struct {
Register *proxy.Register
+ Repository api.Repository
}
// OnAdminAPIStartup represents a event that happens when Janus starts up the admin API
