func init() { app.RegisterApp(APP_ID, func(context app.Context, obj interface{}) interface{} { pubsub := obj.(pubsubWithContext) return &contextedPubsub{ context: context, pubsub: pubsub, } }) }
func init() { app.RegisterApp(APP_ID, func(context app.Context, obj interface{}) interface{} { packetDispatcher := obj.(packetDispatcherWithContext) return &contextedPacketDispatcher{ context: context, packetDispatcher: packetDispatcher, } }) }
func init() { app.RegisterApp(APP_ID_INBOUND_MANAGER, func(context app.Context, obj interface{}) interface{} { manager := obj.(inboundHandlerManagerWithContext) return &inboundHandlerManagerWithContextImpl{ context: context, manager: manager, } }) }
func init() { app.RegisterApp(APP_ID, func(context app.Context, obj interface{}) interface{} { dcContext := obj.(dnsCacheWithContext) return &contextedDnsCache{ context: context, dnsCache: dcContext, } }) }