service

package
v0.0.0-...-58bed8d Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0, MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidProtocolMessage  = errors.New("invalid protocol message")
	ErrInvalidProtocolResponse = errors.New("invalid protocol response")
)
View Source
var (
	ErrIssuerNotSupported = errors.New("issuer is not supported")
	ErrGetClaim           = errors.New("failed to get claim")
	ErrCreateClaim        = errors.New("failed to create claim")
)
View Source
var (
	ErrCredentialNotUpdatable = errors.New("not updatable")
)

Functions

This section is empty.

Types

type AgentService

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

func NewAgentService

func NewAgentService(refreshService *RefreshService,
	packageManager *iden3comm.PackageManager) *AgentService

func (*AgentService) Process

func (as *AgentService) Process(ctx context.Context, envelop []byte) (
	[]byte, error)

type IssuerService

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

IssuerService is service for communication with issuer node

func NewIssuerService

func NewIssuerService(
	supportedIssuers map[string]string,
	issuerBasicAuth map[string]string,
	client *http.Client,
) *IssuerService

func (*IssuerService) CreateCredential

func (is *IssuerService) CreateCredential(issuerDID string, credentialRequest credentialRequest) (
	id string,
	err error,
)

func (*IssuerService) GetClaimByID

func (is *IssuerService) GetClaimByID(issuerDID, claimID string) (*verifiable.W3CCredential, error)

type RefreshService

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

func NewRefreshService

func NewRefreshService(
	issuerService *IssuerService,
	decumentLoader ld.DocumentLoader,
	providers flexiblehttp.FactoryFlexibleHTTP,
) *RefreshService

func (*RefreshService) Process

func (rs *RefreshService) Process(
	ctx context.Context,
	issuer, owner, id string) (
	*verifiable.W3CCredential, error)

Jump to

Keyboard shortcuts

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