Documentation
¶
Index ¶
- type DIDDocService
- func (DIDDocService) GetDIDFragment(fragmentId string, didDoc cheqd.Did) protoiface.MessageV1
- func (ds DIDDocService) MarshallContentStream(contentStream protoiface.MessageV1, contentType types.ContentType) (string, error)
- func (ds DIDDocService) MarshallDID(didDoc cheqd.Did) (string, error)
- func (DIDDocService) MarshallProto(protoObject protoiface.MessageV1) (string, error)
- func (ds DIDDocService) MarshallVerificationMethod(verificationMethod []*cheqd.VerificationMethod) ([]byte, error)
- type LedgerService
- func (ls LedgerService) GetNamespaces() []string
- func (ls LedgerService) QueryDIDDoc(did string) (cheqd.Did, cheqd.Metadata, bool, error)
- func (ls LedgerService) QueryResource(did string, resourceId string) (resource.Resource, bool, error)
- func (ls *LedgerService) RegisterLedger(namespace string, url string) error
- type LedgerServiceI
- type RequestService
- func (rs RequestService) Dereference(didUrl string, dereferenceOptions types.DereferencingOption) (types.DidDereferencing, error)
- func (rs RequestService) IsDidUrl(didUrl string) bool
- func (rs RequestService) ProcessDIDRequest(didUrl string, resolutionOptions types.ResolutionOption) (string, error)
- func (rs RequestService) Resolve(did string, resolutionOptions types.ResolutionOption) (types.DidResolution, error)
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 (LedgerService) QueryResource ¶
func (*LedgerService) RegisterLedger ¶
func (ls *LedgerService) RegisterLedger(namespace string, url string) error
type LedgerServiceI ¶
type RequestService ¶
type RequestService struct {
// contains filtered or unexported fields
}
func NewRequestService ¶
func NewRequestService(didMethod string, ledgerService LedgerServiceI) RequestService
func (RequestService) Dereference ¶
func (rs RequestService) Dereference(didUrl string, dereferenceOptions types.DereferencingOption) (types.DidDereferencing, error)
func (RequestService) IsDidUrl ¶
func (rs RequestService) IsDidUrl(didUrl string) bool
func (RequestService) ProcessDIDRequest ¶
func (rs RequestService) ProcessDIDRequest(didUrl string, resolutionOptions types.ResolutionOption) (string, error)
func (RequestService) Resolve ¶
func (rs RequestService) Resolve(did string, resolutionOptions types.ResolutionOption) (types.DidResolution, error)
Click to show internal directories.
Click to hide internal directories.