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