messaging

package module
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 9 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 (
	MessageTypeTenantManagement        = "tenant.management"
	TenantIdentityCreate               = "tenant.management.identity.create"
	TenantIdentityUpdate               = "tenant.management.identity.update"
	TenantIdentityDelete               = "tenant.management.identity.delete"
	TenantIdentityAppCreate            = "tenant.management.identity.app.create"
	TenantIdentityAppUpdate            = "tenant.management.identity.app.update"
	TenantIdentityAppDelete            = "tenant.management.identity.app.delete"
	TenantIdentityUserCreated          = "tenant.management.identity.user.created"
	TenantIdentityUserDeleted          = "tenant.management.identity.user.deleted"
	TenantIdentityUserCreatedEventType = "org.eclipse.xfsc.identity.user.created"
	TenantIdentityUserDeletedEventType = "org.eclipse.xfsc.identity.user.deleted"
)
View Source
const (
	TopicGetIssuerMetadata     = "wellknown.issuer.metadata"
	EventTypeGetIssuerMetadata = "wellknown.issuer.metadata"
)
View Source
const (
	TopicIssuerRegistration               = "wellknown.issuer.registration"
	EventTypeIssuerRegistration           = "wellknown.issuer.registration"
	EventTypeIssuerCredentialRegistration = "wellknown.issuer.credential.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
	ListId    int    `json:"listid"`
	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"`
	// Signer binding for the status list.
	// Diese Werte bleiben für die erzeugte Liste stabil.
	Key       string `json:"key"`
	DID       string `json:"did"`
	Namespace string `json:"namespace"`
	// Optional, aber praktisch für Signer-Service / OCM-Kontext.
	Group string `json:"group,omitempty"`
	// Optional: StatusList2021, statuslist+jwt, etc.
	Type    string `json:"type,omitempty"`
	Purpose string `json:"purpose,omitempty"`

	// Der Service speichert daraus das Maximum aller Expiration Dates
	// der StatusList.
	ExpirationDate time.Time `json:"expirationDate"`
}

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 CredentialRegistration added in v1.1.14

type CredentialRegistration struct {
	common.Request
	Issuer                  string                             `json:"issuer"`
	ConfigurationId         string                             `json:"ConfigurationId"`
	CredentialConfiguration credential.CredentialConfiguration `json:"CredentialConfiguration"`
}

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"`
	Region      string `json:"region"`
	Country     string `json:"country"`
	Id          string `json:"id"`
}

type TenantIdentityAppDeleteRequest added in v1.5.2

type TenantIdentityAppDeleteRequest struct {
	common.Request
	AppId string `json:"appId"`
}

func (TenantIdentityAppDeleteRequest) Validate added in v1.5.2

type TenantIdentityAppReply added in v1.5.2

type TenantIdentityAppReply struct {
	common.Reply
	AppID string `json:"appId,omitempty"`
}

type TenantIdentityAppRequest added in v1.5.2

type TenantIdentityAppRequest struct {
	common.Request
	AppId         string                       `json:"appId"`
	Name          string                       `json:"name,omitempty"`
	Enabled       *bool                        `json:"enabled,omitempty"`
	Authorization *TenantIdentityAuthorization `json:"authorization,omitempty"`
	Client        *TenantIdentityClient        `json:"client,omitempty"`
}

func (TenantIdentityAppRequest) Validate added in v1.5.2

func (r TenantIdentityAppRequest) Validate() error

Validate checks the mandatory identifiers and any supplied application configuration. For create operations, use ValidateCreate to require full OIDC configuration.

func (TenantIdentityAppRequest) ValidateCreate added in v1.5.2

func (r TenantIdentityAppRequest) ValidateCreate() error

type TenantIdentityAuthorization added in v1.5.2

type TenantIdentityAuthorization struct {
	GrantTypes   []string `json:"grantTypes,omitempty"`
	RedirectURIs []string `json:"redirectUris,omitempty"`
	PKCERequired bool     `json:"pkceRequired"`
	PKCEMethod   string   `json:"pkceMethod,omitempty"`
}

type TenantIdentityClient added in v1.5.2

type TenantIdentityClient struct {
	Type string `json:"type"`
}

type TenantIdentityDeleteRequest added in v1.5.2

type TenantIdentityDeleteRequest struct{ common.Request }

func (TenantIdentityDeleteRequest) Validate added in v1.5.2

func (r TenantIdentityDeleteRequest) Validate() error

type TenantIdentityReply added in v1.5.2

type TenantIdentityReply struct{ common.Reply }

type TenantIdentityRequest added in v1.5.2

type TenantIdentityRequest struct {
	common.Request
	Enabled             *bool  `json:"enabled,omitempty"`
	RegistrationAllowed *bool  `json:"registrationAllowed,omitempty"`
	DisplayName         string `json:"displayName,omitempty"`
}

func (TenantIdentityRequest) Validate added in v1.5.2

func (r TenantIdentityRequest) Validate() error

type TenantIdentityUserCloudEvent added in v1.5.3

type TenantIdentityUserCloudEvent struct {
	SpecVersion     string                  `json:"specversion"`
	ID              string                  `json:"id"`
	Source          string                  `json:"source"`
	Type            string                  `json:"type"`
	Subject         string                  `json:"subject,omitempty"`
	Time            time.Time               `json:"time"`
	DataContentType string                  `json:"datacontenttype,omitempty"`
	Data            TenantIdentityUserEvent `json:"data"`
}

TenantIdentityUserCloudEvent models the structured CloudEvents 1.0 JSON payload.

func ParseTenantIdentityUserEvent added in v1.5.3

func ParseTenantIdentityUserEvent(payload []byte) (*TenantIdentityUserCloudEvent, error)

func ParseTenantIdentityUserEventForSubject added in v1.5.3

func ParseTenantIdentityUserEventForSubject(subject string, payload []byte) (*TenantIdentityUserCloudEvent, error)

func (TenantIdentityUserCloudEvent) Validate added in v1.5.3

func (e TenantIdentityUserCloudEvent) Validate() error

type TenantIdentityUserEvent added in v1.5.3

type TenantIdentityUserEvent struct {
	RealmID   string `json:"realmId"`
	UserID    string `json:"userId"`
	Email     string `json:"email,omitempty"`
	FirstName string `json:"firstName,omitempty"`
	LastName  string `json:"lastName,omitempty"`
}

TenantIdentityUserEvent contains user information from an identity provider.

func (TenantIdentityUserEvent) Validate added in v1.5.3

func (e TenantIdentityUserEvent) Validate() error

type VerifyStatusListEntryReply

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

type VerifyStatusListEntryRequest

type VerifyStatusListEntryRequest struct {
	common.Request
	Namespace string `json:"namespace"`
	// Optional, aber praktisch für Signer-Service / OCM-Kontext.
	Group     string `json:"group,omitempty"`
	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
⌂ 换网址