github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/pubsub/forwarder/messages.go (about) 1 // Copyright 2016 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package forwarder 5 6 import "github.com/juju/juju/pubsub/common" 7 8 const ( 9 // ConnectTopic is published when a connection is established between 10 // the forwarding worker and another API server. 11 ConnectedTopic = "worker.pubsub.remote.connect" 12 13 // DisconnectedTopic is published when a connection is broken between 14 // the forwarding worker and another API server. 15 DisconnectedTopic = "worker.pubsub.remote.disconnect" 16 ) 17 18 // OriginTarget represents the data for the connect and disconnect 19 // topics. 20 type OriginTarget common.OriginTarget