Ejemplo n.º 1
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)
}
Ejemplo n.º 2
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)
}