Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OperationID is this operation's base path. OperationID = "/rfc0593" // GetCredentialSpec is the endpoint for extracting credential specs. GetCredentialSpec = OperationID + "/get-spec" // IssueCredential is the endpoint for credential issuance. IssueCredential = OperationID + "/issue-credential" // VerifyCredential is the endpoint for credential verification. VerifyCredential = OperationID + "/verify-credential" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
Operation implements REST operations for RFC0593.
func (*Operation) GetCredentialSpec ¶
func (o *Operation) GetCredentialSpec(w http.ResponseWriter, r *http.Request)
GetCredentialSpec swagger:route POST /rfc0593/get-spec get-spec getCredentialSpecRequest
Extracts an RFC0593 credential spec from an applicable issue-credential message.
Responses:
default: genericError 200: getCredentialSpecResponse
func (*Operation) GetRESTHandlers ¶
GetRESTHandlers returns all handlers for Operation.
func (*Operation) IssueCredential ¶
func (o *Operation) IssueCredential(w http.ResponseWriter, r *http.Request)
IssueCredential swagger:route POST /rfc0593/issue-credential issue-credential issueCredentialRequest
Issues a credential based on a RFC0593 credential spec.
Responses:
default: genericError 200: issueCredentialResponse
func (*Operation) VerifyCredential ¶
func (o *Operation) VerifyCredential(w http.ResponseWriter, r *http.Request)
VerifyCredential swagger:route POST /rfc0593/verify-credential verify-credential verifyCredentialRequest
Verifies a credential against a credential spec.
Responses:
default: genericError 200: verifyCredentialResponse
Click to show internal directories.
Click to hide internal directories.