Versions in this module Expand all Collapse all v6 v6.2.13 Sep 22, 2026 v6.2.12 Sep 21, 2026 Changes in this version + const ModuleName + var ErrDIDMethodsNotSupported = errors.New("DID methods not supported") + var ErrInvalidPresentation = errors.New("presentation is invalid for registration") + var ErrNoSupportedDIDMethods = errors.New("subject has no (active) DIDs matching the service") + var ErrPresentationAlreadyExists = errors.New("presentation already exists") + var ErrPresentationRegistrationFailed = errors.New("registration of Verifiable Presentation on remote Discovery Service failed") + var ErrServiceNotFound = errors.New("discovery service not found") + type Client interface + ActivateServiceForSubject func(ctx context.Context, serviceID, subjectID string, ...) error + DeactivateServiceForSubject func(ctx context.Context, serviceID, subjectID string) error + GetServiceActivation func(ctx context.Context, serviceID, subjectID string) (bool, []vc.VerifiablePresentation, error) + Search func(serviceID string, query map[string]string) ([]SearchResult, error) + Services func() []ServiceDefinition + type ClientConfig struct + RefreshInterval time.Duration + RefreshIntervalOld time.Duration + type Config struct + Client ClientConfig + Definitions ServiceDefinitionsConfig + Server ServerConfig + func DefaultConfig() Config + type MockClient struct + func NewMockClient(ctrl *gomock.Controller) *MockClient + func (m *MockClient) ActivateServiceForSubject(ctx context.Context, serviceID, subjectID string, parameters map[string]any) error + func (m *MockClient) DeactivateServiceForSubject(ctx context.Context, serviceID, subjectID string) error + func (m *MockClient) EXPECT() *MockClientMockRecorder + func (m *MockClient) GetServiceActivation(ctx context.Context, serviceID, subjectID string) (bool, []vc.VerifiablePresentation, error) + func (m *MockClient) Search(serviceID string, query map[string]string) ([]SearchResult, error) + func (m *MockClient) Services() []ServiceDefinition + type MockClientMockRecorder struct + func (mr *MockClientMockRecorder) ActivateServiceForSubject(ctx, serviceID, subjectID, parameters any) *gomock.Call + func (mr *MockClientMockRecorder) DeactivateServiceForSubject(ctx, serviceID, subjectID any) *gomock.Call + func (mr *MockClientMockRecorder) GetServiceActivation(ctx, serviceID, subjectID any) *gomock.Call + func (mr *MockClientMockRecorder) Search(serviceID, query any) *gomock.Call + func (mr *MockClientMockRecorder) Services() *gomock.Call + type MockServer struct + func NewMockServer(ctrl *gomock.Controller) *MockServer + func (m *MockServer) EXPECT() *MockServerMockRecorder + func (m *MockServer) Get(arg0 context.Context, serviceID string, startAfter int) (map[string]vc.VerifiablePresentation, string, int, error) + func (m *MockServer) Register(arg0 context.Context, serviceID string, presentation vc.VerifiablePresentation) error + type MockServerMockRecorder struct + func (mr *MockServerMockRecorder) Get(arg0, serviceID, startAfter any) *gomock.Call + func (mr *MockServerMockRecorder) Register(arg0, serviceID, presentation any) *gomock.Call + type Module struct + func New(storageInstance storage.Engine, vcrInstance vcr.VCR, ...) *Module + func (m *Module) ActivateServiceForSubject(ctx context.Context, serviceID, subjectID string, ...) error + func (m *Module) Config() interface{} + func (m *Module) Configure(serverConfig core.ServerConfig) error + func (m *Module) DeactivateServiceForSubject(ctx context.Context, serviceID, subjectID string) error + func (m *Module) Get(context context.Context, serviceID string, startAfter int) (map[string]vc.VerifiablePresentation, string, int, error) + func (m *Module) GetServiceActivation(ctx context.Context, serviceID, subjectID string) (bool, []vc.VerifiablePresentation, error) + func (m *Module) Name() string + func (m *Module) Register(context context.Context, serviceID string, ...) error + func (m *Module) Search(serviceID string, query map[string]string) ([]SearchResult, error) + func (m *Module) Services() []ServiceDefinition + func (m *Module) Shutdown() error + func (m *Module) Start() error + type RegistrationRefreshError struct + Underlying error + func (r RegistrationRefreshError) Error() string + type SQLBool bool + func (b *SQLBool) Scan(value interface{}) error + func (b SQLBool) Bool() bool + func (b SQLBool) Value() (driver.Value, error) + type SearchResult struct + Fields map[string]interface{} + Parameters map[string]interface{} + Presentation vc.VerifiablePresentation + type Server interface + Get func(context context.Context, serviceID string, startAfter int) (map[string]vc.VerifiablePresentation, string, int, error) + Register func(context context.Context, serviceID string, ...) error + type ServerConfig struct + IDs []string + type ServiceDefinition struct + DIDMethods []string + Endpoint string + ID string + PresentationDefinition pe.PresentationDefinition + PresentationMaxValidity int + func ParseServiceDefinition(data []byte) (*ServiceDefinition, error) + type ServiceDefinitionsConfig struct + Directory string + type XForwardedHostContextKey struct