messaging

package module
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 2 Imported by: 6

README

Messaging

This library contains default golang message structures and types which are used by the micro services as data contract for communication.

Documentation

Index

Constants

View Source
const (
	EventTypeRetrievalExternal               = "retrieval.offering.external"
	EventTypeRetrievalAcceptanceNotification = "retrieval.offering.acceptance"
	EventTypeRetrievalReceivedNotification   = "retrieval.offering.received"
	TopicRetrevialSubscription               = "retrieval.offering.subscription"
	TopicRetrevialPublication                = "retrieval.offering.publication"
)
View Source
const (
	SignerServiceCreateKeyType string = "signer.createKey"
	SignerServiceSignTokenType string = "signer.signToken"
	SignerServiceErrorType     string = "signer.error"
)
View Source
const (
	EventTypeStatus       = "status.data"
	TopicStatusData       = "status.data.create"
	TopicStatusDataVerify = "status.data.verify"
)
View Source
const (
	StorePresentationType = "storage.service.presentation"
	StoreCredentialType   = "storage.service.credential"
	StorageTopic          = "storage.service.store"
)
View Source
const (
	TopicGetIssuerMetadata     = "wellknown.issuer.metadata"
	EventTypeGetIssuerMetadata = "wellknown.issuer.metadata"
)
View Source
const (
	TopicIssuerRegistration     = "wellknown.issuer.registration"
	EventTypeIssuerRegistration = "wellknown.issuer.registration"
)
View Source
const (
	EventTypeIssuance = "issuance.request"
)
View Source
const SourceWellKnownService = "wellknown"

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateKeyReply

type CreateKeyReply struct {
	common.Reply
}

type CreateKeyRequest

type CreateKeyRequest struct {
	common.Request
	Namespace string `json:"namespace"`
	Group     string `json:"group"`
	Key       string `json:"key"`
	Type      string `json:"type"`
}

type CreateStatusListEntryReply

type CreateStatusListEntryReply struct {
	common.Reply
	Index     int    `json:"index"`
	StatusUrl string `json:"statusUrl"`
	Type      string `json:"type"`
	Purpose   string `json:"purpose"`
}

type CreateStatusListEntryRequest

type CreateStatusListEntryRequest struct {
	common.Request
	Origin string `json:"origin"`
}

type CreateTokenReply

type CreateTokenReply struct {
	common.Reply
	Token []byte `json:"token"`
}

type CreateTokenRequest

type CreateTokenRequest struct {
	common.Request
	Namespace string `json:"namespace"`
	Group     string `json:"group"`
	Key       string `json:"key"`
	Payload   []byte `json:"payload"`
	Header    []byte `json:"header"`
}

type GetIssuerMetadataReply

type GetIssuerMetadataReply struct {
	common.Reply
	Issuer *credential.IssuerMetadata
}

type GetIssuerMetadataReq

type GetIssuerMetadataReq struct {
	common.Request
	Format *string
}

type HistoryRecord

type HistoryRecord struct {
	common.Reply
	UserId  string `json:"user_id"`
	Message string `json:"message"`
}

type IssuanceReply

type IssuanceReply struct {
	common.Reply
	Offer credential.CredentialOffer `json:"offer"`
}

type IssuanceRequest

type IssuanceRequest struct {
	common.Request
	Identifier string                 `json:"identifier"`
	Payload    map[string]interface{} `json:"payload"`
}

type IssuerRegistration

type IssuerRegistration struct {
	common.Request
	Issuer credential.IssuerMetadata `json:"issuer"`
}

type RecordEventType

type RecordEventType string
const (
	Consent             RecordEventType = "consent"
	Pairing             RecordEventType = "pairing"
	Issued              RecordEventType = "issued"
	Presented           RecordEventType = "presented"
	Revoked             RecordEventType = "revoked"
	PresentationRequest RecordEventType = "presentationRequest"
	DeviceConnection    RecordEventType = "device.connection"
)

func RecordEventTypes

func RecordEventTypes() []RecordEventType

type RetrievalAcceptanceNotification

type RetrievalAcceptanceNotification struct {
	common.Request
	OfferingId      string `json:"offeringId"`
	Message         string `json:"message"`
	Result          bool   `json:"result"`
	HolderKey       string `json:"holderKey`
	HolderNamespace string `json:"holderNamespace`
	HolderGroup     string `json:"holderGroup`
	TxCode          string `json:"tx_code`
}

Notification when something was accepted --> EventTypeRetrievalAcceptanceNotification

type RetrievalNotification

type RetrievalNotification struct {
	common.Request
	Offer credential.CredentialOfferParameters `json:"offerParams"`
}

Notification when something was received --> EventTypeRetrievalReceivedNotification

type RetrievalOffering

type RetrievalOffering struct {
	common.Request
	Offer credential.CredentialOffer `json:"offer"`
}

Incoming Event for Offerings --> EventTypeRetrievalExternal

type StorageServiceStoreMessage

type StorageServiceStoreMessage struct {
	common.Request
	AccountId   string `json:"accountId"`
	Type        string `json:"type"`
	Payload     []byte `json:"payload"`
	ContentType string `json:"contentType"`
	Id          string `json:"id"`
}

type VerifyStatusListEntryReply

type VerifyStatusListEntryReply struct {
	common.Reply
	Revocated bool `json:"revocated"`
	Suspended bool `json:"suspended"`
}

type VerifyStatusListEntryRequest

type VerifyStatusListEntryRequest struct {
	common.Request
	Index     int    `json:"index"`
	StatusUrl string `json:"statusUrl"`
	Type      string `json:"type"`
	Purpose   string `json:"purpose"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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