summaryrefslogtreecommitdiffstats
path: root/lib/xdsserver/events.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xdsserver/events.go')
-rw-r--r--lib/xdsserver/events.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xdsserver/events.go b/lib/xdsserver/events.go
index 2528725..0a02ecd 100644
--- a/lib/xdsserver/events.go
+++ b/lib/xdsserver/events.go
@@ -35,8 +35,8 @@ type Events struct {
eventsMap map[string]*EventDef
}
-// NewEvents creates an instance of Events
-func NewEvents(ctx *Context) *Events {
+// EventsConstructor creates an instance of Events
+func EventsConstructor(ctx *Context) *Events {
evMap := make(map[string]*EventDef)
for _, ev := range xsapiv1.EVTAllList {
evMap[ev] = &EventDef{