Documentation
¶
Overview ¶
Package mediatorclient provides REST operations for mediator client command.
Index ¶
Constants ¶
const ( OperationID = "/mediatorclient" ConnectPath = OperationID + "/connect" CreateInvitationPath = OperationID + "/create-invitation" SendCreateConnectionRequest = OperationID + "/send-connection-request" )
constants for endpoints of mediator client.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
Operation is controller REST service controller for mediator Client.
func New ¶
func New(ctx mediatorclient.Provider, msgHandler ariescmd.MessageHandler, notifier ariescmd.Notifier) (*Operation, error)
New returns new mediator client rest instance.
func (*Operation) Connect ¶
func (c *Operation) Connect(rw http.ResponseWriter, req *http.Request)
Connect swagger:route POST /mediatorclient/connect mediatorclient connect
Connects to mediator.
Responses:
default: genericError 200: connectionResponse
func (*Operation) CreateInvitation ¶
func (c *Operation) CreateInvitation(rw http.ResponseWriter, req *http.Request)
CreateInvitation swagger:route POST /mediatorclient/create-invitation mediatorclient createMediatorInvitation
Creates out-of-band invitation through mediator.
Responses:
default: genericError 200: createInvitationResponse
func (*Operation) GetRESTHandlers ¶
GetRESTHandlers get all controller API handler available for this protocol service.
func (*Operation) SendCreateConnectionRequest ¶
func (c *Operation) SendCreateConnectionRequest(rw http.ResponseWriter, req *http.Request)
SendCreateConnectionRequest Sends create connection request to mediator.
swagger:route POST /mediatorclient/send-connection-request mediatorclient createConnRequest
Sends create connection request to mediator.
Responses:
default: genericError 200: createConnectionResponse