services

package
v1.1.0-dev1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DIDDocService

type DIDDocService struct{}

func (DIDDocService) GetDIDFragment

func (DIDDocService) GetDIDFragment(fragmentId string, didDoc cheqd.Did) protoiface.MessageV1

func (DIDDocService) MarshallContentStream

func (ds DIDDocService) MarshallContentStream(contentStream protoiface.MessageV1, contentType types.ContentType) (string, error)

func (DIDDocService) MarshallDID

func (ds DIDDocService) MarshallDID(didDoc cheqd.Did) (string, error)

func (DIDDocService) MarshallProto

func (DIDDocService) MarshallProto(protoObject protoiface.MessageV1) (string, error)

func (DIDDocService) MarshallVerificationMethod

func (ds DIDDocService) MarshallVerificationMethod(verificationMethod []*cheqd.VerificationMethod) ([]byte, error)

type LedgerService

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

func NewLedgerService

func NewLedgerService(connectionTimeout time.Duration, useTls bool) LedgerService

func (LedgerService) GetNamespaces

func (ls LedgerService) GetNamespaces() []string

func (LedgerService) QueryDIDDoc

func (ls LedgerService) QueryDIDDoc(did string) (cheqd.Did, cheqd.Metadata, bool, error)

func (LedgerService) QueryResource

func (ls LedgerService) QueryResource(did string, resourceId string) (resource.Resource, bool, error)

func (*LedgerService) RegisterLedger

func (ls *LedgerService) RegisterLedger(namespace string, url string) error

type LedgerServiceI

type LedgerServiceI interface {
	QueryDIDDoc(did string) (cheqd.Did, cheqd.Metadata, bool, error)
	QueryResource(collectionDid string, resourceId string) (resource.Resource, bool, error)
	GetNamespaces() []string
}

type RequestService

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

func NewRequestService

func NewRequestService(didMethod string, ledgerService LedgerServiceI) RequestService

func (RequestService) IsDidUrl

func (rs RequestService) IsDidUrl(didUrl string) bool

func (RequestService) ProcessDIDRequest

func (rs RequestService) ProcessDIDRequest(didUrl string, resolutionOptions types.ResolutionOption) (string, error)

Jump to

Keyboard shortcuts

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