Help us shape the future of Go! Take the 2026 Go Developer Survey

rfc0593

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

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 New

func New(p rfc0593.Provider) *Operation

New returns a new Operation.

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

func (o *Operation) GetRESTHandlers() []rest.Handler

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL