test
This commit is contained in:
@@ -232,6 +232,19 @@ const (
|
||||
// deregister the watching peerID from the creator's watcher cache.
|
||||
// Payload: { "creator_peer_id": "...", "resource_id": "..." }
|
||||
PB_UNWATCH_RESOURCE
|
||||
|
||||
// PB_BOOKING_SYNC is emitted by master every 24 h to each known NANO.
|
||||
// Payload: {"peer_id": nano.PeerID, "booking_sync_ids": ["id1", "id2", ...]}
|
||||
// Nano compares the list against its own confirmed bookings and calls
|
||||
// SendBookingToMaster for any it has that master is missing.
|
||||
PB_BOOKING_SYNC
|
||||
|
||||
// PB_VERIFY_RESOURCE is emitted by oc-workspace or oc-workflow on workspace
|
||||
// activation / workflow opening to verify that an embedded non-self resource
|
||||
// is still current. oc-discovery forwards the request to the creator peer via
|
||||
// ProtocolVerifyResource; the result comes back as a VERIFY_RESOURCE NATS event.
|
||||
// Payload: { "creator_peer_id": "…", "data_type": N, "resource_payload": {…} }
|
||||
PB_VERIFY_RESOURCE
|
||||
)
|
||||
|
||||
func GetActionString(ss string) PubSubAction {
|
||||
@@ -272,6 +285,8 @@ func GetActionString(ss string) PubSubAction {
|
||||
return PB_WATCH_RESOURCE
|
||||
case "unwatch_resource":
|
||||
return PB_UNWATCH_RESOURCE
|
||||
case "booking_sync":
|
||||
return PB_BOOKING_SYNC
|
||||
default:
|
||||
return NONE
|
||||
}
|
||||
@@ -299,6 +314,7 @@ var path = []string{
|
||||
"org_partner", // 17 PB_ORG_PARTNER
|
||||
"watch_resource", // 18 PB_WATCH_RESOURCE
|
||||
"unwatch_resource", // 19 PB_UNWATCH_RESOURCE
|
||||
"booking_sync", // 20 PB_BOOKING_SYNC
|
||||
}
|
||||
|
||||
func (m PubSubAction) String() string {
|
||||
|
||||
Reference in New Issue
Block a user