eventhandler

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSLService added in v1.12.0

type CSLService interface {
	SignCSL(profileID, profileVersion string, csl *verifiable.Credential) ([]byte, error)
	GetCSLVCWrapper(ctx context.Context, cslURL string) (*credentialstatus.CSLVCWrapper, error)
	UpsertCSLVCWrapper(ctx context.Context, cslURL string, wrapper *credentialstatus.CSLVCWrapper) error
}

type Config

type Config struct {
	CSLService CSLService
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(conf *Config) *Service

func (*Service) HandleEvent

func (s *Service) HandleEvent(ctx context.Context, event *spi.Event) error

HandleEvent is responsible for the handling of spi.CredentialStatusStatusUpdated events.

Jump to

Keyboard shortcuts

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