client

package
v0.0.0-...-bd860cc Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a JSON-LD SDK client.

func New

func New(opts ...Option) *Client

New creates new did configuration client.

func (*Client) VerifyDIDAndDomain

func (c *Client) VerifyDIDAndDomain(did, domain string) error

VerifyDIDAndDomain will verify that there is valid domain linkage credential in did configuration for specified did and domain.

type Option

type Option func(opts *Client)

Option configures the did configuration client.

func WithHTTPClient

func WithHTTPClient(httpClient httpClient) Option

WithHTTPClient option is for custom http client.

func WithJSONLDDocumentLoader

func WithJSONLDDocumentLoader(documentLoader jsonld.DocumentLoader) Option

WithJSONLDDocumentLoader defines a JSON-LD document loader.

func WithVDRegistry

func WithVDRegistry(didResolver didResolver) Option

WithVDRegistry defines a vdr service.

Jump to

Keyboard shortcuts

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