// 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) }
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) }