Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

refactor: Update Route Coordination type URIs (Route -> Mediator) #1827

Merged
merged 1 commit into from
May 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/client/outofband/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func ExampleClient_AcceptRequest() { //nolint:gocyclo,gocognit
// Bob accepts the out-of-band request received via an out of band channel and created connectionID xyz
// Router received https://didcomm.org/didexchange/1.0/request from Bob
// Router created connectionID xyz
// Router received https://didcomm.org/routecoordination/1.0/route-request from Bob
// Router received https://didcomm.org/coordinatemediation/1.0/mediate-request from Bob
// Bob has registered a route on Router with routerEndpoint http://routers-r-us.com and routingKeys [key-1 key-2]
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/client/route/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ import (
func TestNewRequest(t *testing.T) {
result := NewRequest()
require.NotEmpty(t, result.ID)
require.Equal(t, "https://didcomm.org/routecoordination/1.0/route-request", result.Type)
require.Equal(t, "https://didcomm.org/coordinatemediation/1.0/mediate-request", result.Type)
}
8 changes: 4 additions & 4 deletions pkg/didcomm/protocol/route/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ var logger = log.New("aries-framework/route/service")
// constants for route coordination spec types
const (
// Coordination route coordination protocol
Coordination = "routecoordination"
Coordination = "coordinatemediation"

// RouteCoordinationSpec defines the route coordination spec
CoordinationSpec = "https://didcomm.org/routecoordination/1.0/"
CoordinationSpec = "https://didcomm.org/coordinatemediation/1.0/"

// RouteRequestMsgType defines the route coordination request message type.
RequestMsgType = CoordinationSpec + "route-request"
RequestMsgType = CoordinationSpec + "mediate-request"

// RouteGrantMsgType defines the route coordination request grant message type.
GrantMsgType = CoordinationSpec + "route-grant"
GrantMsgType = CoordinationSpec + "mediate-grant"

// KeyListUpdateMsgType defines the route coordination key list update message type.
KeylistUpdateMsgType = CoordinationSpec + "keylist_update"
Expand Down