func (m *Mediator) Unregister(request *models.RequestEnvelope) *models.ResponseEnvelope {
	return m.createRespEnvelope(request, mediator.UnregisterCommandMethod)
}
Unregister unregisters the agent with the router.
package rest
import (
	"github.com/hyperledger/aries-framework-go/cmd/aries-agent-mobile/pkg/wrappers/models"
	"github.com/hyperledger/aries-framework-go/pkg/controller/command/mediator"
)
type Mediator struct {
	httpClient httpClient
	endpoints  map[string]*endpoint
	URL   string
	Token string
}
func (m *Mediator) Register(request *models.RequestEnvelope) *models.ResponseEnvelope {
	return m.createRespEnvelope(request, mediator.RegisterCommandMethod)
}