Documentation ¶
Index ¶
Constants ¶
View Source
const ( // VerifierEventTopic verifier topic name. VerifierEventTopic = "vcs-verifier" // IssuerEventTopic issuer topic name. IssuerEventTopic = "vcs-issuer" // CredentialStatusEventTopic credential status topic name. CredentialStatusEventTopic = "vcs-credentialstatus" )
View Source
const ( // VerifierOIDCInteractionInitiated verifier oidc event. VerifierOIDCInteractionInitiated = "verifier.oidc-interaction-initiated.v1" // VerifierOIDCInteractionQRScanned verifier oidc event. VerifierOIDCInteractionQRScanned = "verifier.oidc-interaction-qr-scanned.v1" // VerifierOIDCInteractionSucceeded verifier oidc event. VerifierOIDCInteractionSucceeded = "verifier.oidc-interaction-succeeded.v1" // VerifierOIDCInteractionFailed verifier oidc event. VerifierOIDCInteractionFailed = "verifier.oidc-interaction-failed.v1" // IssuerOIDCInteractionInitiated Issuer oidc event. IssuerOIDCInteractionInitiated = EventType("issuer.oidc-interaction-initiated.v1") // IssuerOIDCInteractionQRScanned Issuer oidc event. IssuerOIDCInteractionQRScanned = EventType("issuer.oidc-interaction-qr-scanned.v1") // IssuerOIDCInteractionSucceeded Issuer oidc event. IssuerOIDCInteractionSucceeded = EventType("issuer.oidc-interaction-succeeded.v1") IssuerOIDCInteractionAuthorizationRequestPrepared = EventType("issuer.oidc-interaction-authorization-request-prepared.v1") //nolint IssuerOIDCInteractionAuthorizationCodeStored = EventType("issuer.oidc-interaction-authorization-code-stored.v1") //nolint IssuerOIDCInteractionAuthorizationCodeExchanged = EventType("issuer.oidc-interaction-authorization-code-exchanged.v1") //nolint IssuerOIDCInteractionFailed = EventType("issuer.oidc-interaction-failed.v1") CredentialStatusStatusUpdated = EventType("issuer.credential-status-updated.v1") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { // SpecVersion is spec version(required). SpecVersion string `json:"specversion"` // ID identifies the event(required). ID string `json:"id"` // Source is URI for producer(required). Source string `json:"source"` // Type defines event type(required). Type EventType `json:"type"` // Time defines time of occurrence(required). Time *util.TimeWrapper `json:"time"` // DataContentType is data content type(optional). DataContentType string `json:"datacontenttype,omitempty"` // Data defines message(optional). Data []byte `json:"data,omitempty"` // TransactionID defines transaction ID(optional). TransactionID string `json:"txnid,omitempty"` // Subject defines subject(optional). Subject string `json:"subject,omitempty"` // Tracing defines tracing information(optional). Tracing string `json:"tracing,omitempty"` }
Event defines event.
func NewEventWithPayload ¶
NewEventWithPayload creates a new Event with payload.
Click to show internal directories.
Click to hide internal directories.