Documentation ¶
Index ¶
Constants ¶
View Source
const ( OperationID = "/connections" RotateDIDPath = OperationID + "/{id}/rotate-did" CreateConnectionV2Path = OperationID + "/create-v2" SetConnectionToV2Path = OperationID + "/{id}/use-v2" )
constants for connection management endpoints.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
Operation is the REST controller for connection management.
func (*Operation) CreateConnectionV2 ¶
func (c *Operation) CreateConnectionV2(rw http.ResponseWriter, req *http.Request)
CreateConnectionV2 swagger:route POST /connections/create-v2 connections createConnectionV2
Creates a DIDComm v2 connection record with the given DIDs.
Responses:
default: genericError 200: createConnectionV2Response
func (*Operation) GetRESTHandlers ¶
GetRESTHandlers get all controller API handlers available for this service.
func (*Operation) RotateDID ¶
func (c *Operation) RotateDID(rw http.ResponseWriter, req *http.Request)
RotateDID swagger:route POST /connections/{id}/rotate-did connections rotateDID
Rotates the agent's DID in the given connection.
Responses:
default: genericError 200: rotateDIDResponse
func (*Operation) SetConnectionToDIDCommV2 ¶
func (c *Operation) SetConnectionToDIDCommV2(rw http.ResponseWriter, req *http.Request)
SetConnectionToDIDCommV2 sets the didcomm version of the given connection to V2.
Click to show internal directories.
Click to hide internal directories.