Documentation ¶
Index ¶
- Constants
- type Operation
- func (c *Operation) AcceptPresentation(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) AcceptProblemReport(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) AcceptProposePresentation(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) AcceptProposePresentationV3(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) AcceptRequestPresentation(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) AcceptRequestPresentationV3(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) Actions(rw http.ResponseWriter, _ *http.Request)
- func (c *Operation) DeclinePresentation(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) DeclineProposePresentation(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) DeclineRequestPresentation(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) GetRESTHandlers() []rest.Handler
- func (c *Operation) NegotiateRequestPresentation(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) NegotiateRequestPresentationV3(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) SendProposePresentation(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) SendProposePresentationV3(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) SendRequestPresentation(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) SendRequestPresentationV3(rw http.ResponseWriter, req *http.Request)
Constants ¶
const ( OperationID = "/presentproof" OperationIDV3 = OperationID + "/v3" Actions = OperationID + "/actions" SendRequestPresentation = OperationID + "/send-request-presentation" SendRequestPresentationV3 = OperationIDV3 + "/send-request-presentation" SendProposePresentation = OperationID + "/send-propose-presentation" SendProposePresentationV3 = OperationIDV3 + "/send-propose-presentation" AcceptRequestPresentation = OperationID + "/{piid}/accept-request-presentation" AcceptRequestPresentationV3 = OperationIDV3 + "/{piid}/accept-request-presentation" NegotiateRequestPresentation = OperationID + "/{piid}/negotiate-request-presentation" NegotiateRequestPresentationV3 = OperationIDV3 + "/{piid}/negotiate-request-presentation" DeclineRequestPresentation = OperationID + "/{piid}/decline-request-presentation" AcceptProposePresentation = OperationID + "/{piid}/accept-propose-presentation" AcceptProposePresentationV3 = OperationIDV3 + "/{piid}/accept-propose-presentation" DeclineProposePresentation = OperationID + "/{piid}/decline-propose-presentation" AcceptPresentation = OperationID + "/{piid}/accept-presentation" DeclinePresentation = OperationID + "/{piid}/decline-presentation" AcceptProblemReport = OperationID + "/{piid}/accept-problem-report" )
constants for PresentProof operations.
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 present proof.
func (*Operation) AcceptPresentation ¶
func (c *Operation) AcceptPresentation(rw http.ResponseWriter, req *http.Request)
AcceptPresentation swagger:route POST /presentproof/{piid}/accept-presentation present-proof presentProofAcceptPresentation
Accepts a presentation.
Responses:
default: genericError 200: presentProofAcceptPresentationResponse
func (*Operation) AcceptProblemReport ¶ added in v0.1.4
func (c *Operation) AcceptProblemReport(rw http.ResponseWriter, req *http.Request)
AcceptProblemReport swagger:route POST /presentproof/{piid}/accept-problem-report present-proof presentProofAcceptProblemReport
Accepts a problem report.
Responses:
default: genericError 200: presentProofAcceptProblemReportResponse
func (*Operation) AcceptProposePresentation ¶
func (c *Operation) AcceptProposePresentation(rw http.ResponseWriter, req *http.Request)
AcceptProposePresentation swagger:route POST /presentproof/{piid}/accept-propose-presentation present-proof presentProofAcceptProposePresentation
Accepts a propose presentation.
Responses:
default: genericError 200: presentProofAcceptProposePresentationResponse
func (*Operation) AcceptProposePresentationV3 ¶ added in v0.1.7
func (c *Operation) AcceptProposePresentationV3(rw http.ResponseWriter, req *http.Request)
AcceptProposePresentationV3 swagger:route POST /presentproof/v3/{piid}/accept-propose-presentation present-proof presentProofAcceptProposePresentationV3
Accepts a propose presentation.
Responses:
default: genericError 200: presentProofAcceptProposePresentationResponse
func (*Operation) AcceptRequestPresentation ¶
func (c *Operation) AcceptRequestPresentation(rw http.ResponseWriter, req *http.Request)
AcceptRequestPresentation swagger:route POST /presentproof/{piid}/accept-request-presentation present-proof presentProofAcceptRequestPresentation
Accepts a request presentation.
Responses:
default: genericError 200: presentProofAcceptRequestPresentationResponse
func (*Operation) AcceptRequestPresentationV3 ¶ added in v0.1.7
func (c *Operation) AcceptRequestPresentationV3(rw http.ResponseWriter, req *http.Request)
AcceptRequestPresentationV3 swagger:route POST /presentproof/v3/{piid}/accept-request-presentation present-proof presentProofAcceptRequestPresentationV3
Accepts a request presentation.
Responses:
default: genericError 200: presentProofAcceptRequestPresentationResponse
func (*Operation) Actions ¶
func (c *Operation) Actions(rw http.ResponseWriter, _ *http.Request)
Actions swagger:route GET /presentproof/actions present-proof presentProofActions
Returns pending actions that have not yet to be executed or cancelled.
Responses:
default: genericError 200: presentProofActionsResponse
func (*Operation) DeclinePresentation ¶
func (c *Operation) DeclinePresentation(rw http.ResponseWriter, req *http.Request)
DeclinePresentation swagger:route POST /presentproof/{piid}/decline-presentation present-proof presentProofDeclinePresentation
Declines a presentation.
Responses:
default: genericError 200: presentProofDeclinePresentationResponse
func (*Operation) DeclineProposePresentation ¶
func (c *Operation) DeclineProposePresentation(rw http.ResponseWriter, req *http.Request)
DeclineProposePresentation swagger:route POST /presentproof/{piid}/decline-propose-presentation present-proof presentProofDeclineProposePresentation
Declines a propose presentation.
Responses:
default: genericError 200: presentProofDeclineProposePresentationResponse
func (*Operation) DeclineRequestPresentation ¶
func (c *Operation) DeclineRequestPresentation(rw http.ResponseWriter, req *http.Request)
DeclineRequestPresentation swagger:route POST /presentproof/{piid}/decline-request-presentation present-proof presentProofDeclineRequestPresentation
Declines a request presentation.
Responses:
default: genericError 200: presentProofDeclineRequestPresentationResponse
func (*Operation) GetRESTHandlers ¶
GetRESTHandlers get all controller API handler available for this protocol service.
func (*Operation) NegotiateRequestPresentation ¶
func (c *Operation) NegotiateRequestPresentation(rw http.ResponseWriter, req *http.Request)
NegotiateRequestPresentation swagger:route POST /presentproof/{piid}/negotiate-request-presentation present-proof presentProofNegotiateRequestPresentation
Is used by the Prover to counter a presentation request they received with a proposal.
Responses:
default: genericError 200: presentProofNegotiateRequestPresentationResponse
func (*Operation) NegotiateRequestPresentationV3 ¶ added in v0.1.7
func (c *Operation) NegotiateRequestPresentationV3(rw http.ResponseWriter, req *http.Request)
NegotiateRequestPresentationV3 swagger:route POST /presentproof/v3/{piid}/negotiate-request-presentation present-proof presentProofNegotiateRequestPresentationV3
Is used by the Prover to counter a presentation request they received with a proposal.
Responses:
default: genericError 200: presentProofNegotiateRequestPresentationResponse
func (*Operation) SendProposePresentation ¶
func (c *Operation) SendProposePresentation(rw http.ResponseWriter, req *http.Request)
SendProposePresentation swagger:route POST /presentproof/send-propose-presentation present-proof presentProofSendProposePresentation
Sends a propose presentation.
Responses:
default: genericError 200: presentProofSendProposePresentationResponse
func (*Operation) SendProposePresentationV3 ¶ added in v0.1.7
func (c *Operation) SendProposePresentationV3(rw http.ResponseWriter, req *http.Request)
SendProposePresentationV3 swagger:route POST /presentproof/v3/send-propose-presentation present-proof presentProofSendProposePresentationV3
Sends a propose presentation.
Responses:
default: genericError 200: presentProofSendProposePresentationResponse
func (*Operation) SendRequestPresentation ¶
func (c *Operation) SendRequestPresentation(rw http.ResponseWriter, req *http.Request)
SendRequestPresentation swagger:route POST /presentproof/send-request-presentation present-proof presentProofSendRequestPresentation
Sends a request presentation.
Responses:
default: genericError 200: presentProofSendRequestPresentationResponse
func (*Operation) SendRequestPresentationV3 ¶ added in v0.1.7
func (c *Operation) SendRequestPresentationV3(rw http.ResponseWriter, req *http.Request)
SendRequestPresentationV3 swagger:route POST /presentproof/v3/send-request-presentation present-proof presentProofSendRequestPresentationV3
Sends a request presentation.
Responses:
default: genericError 200: presentProofSendRequestPresentationResponse