Esempio n. 1
0
// Allow to override the default pubsub engine.
// To be compatible, it is needed to implement the Subscription interface.
func (api *Api) PubSub(pubsub account.PubSub) {
	account.NewPubSub(pubsub)
}
Esempio n. 2
0
func (s *S) SetUpSuite(c *C) {
	Logger.Disable()
	// FIXME: add memory
	pubsub := account.NewEtcdSubscription("/account_test/", &db.EtcdConfig{Machines: []string{"http://localhost:2379"}})
	account.NewPubSub(pubsub)
}