Documentation ¶
Index ¶
- type Client
- func (c *Client) GetLedgerType(uri string) (string, error)
- func (c *Client) GetWebCASURL(domainWithScheme, cid string) (*url.URL, error)
- func (c *Client) HasSupportedLedgerType(uri string) (bool, error)
- func (c *Client) ResolveLog(uri string) (*url.URL, error)
- func (c *Client) ResolveWebFingerResource(domainWithScheme, resource string) (restapi.JRD, error)
- type Option
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 implements webfinger client.
func (*Client) GetLedgerType ¶
GetLedgerType returns ledger type for the VCT service.
func (*Client) GetWebCASURL ¶
GetWebCASURL gets the WebCAS URL for cid from domainWithScheme using WebFinger.
func (*Client) HasSupportedLedgerType ¶
HasSupportedLedgerType returns true if domain supports configured ledger type.
func (*Client) ResolveLog ¶
ResolveLog returns VCT log for the given service URI.
type Option ¶
type Option func(opts *Client)
Option is a webfinger client instance option.
func WithCacheLifetime ¶
WithCacheLifetime option defines the lifetime of an object in the cache. If we end-up with multiple caches that require different lifetime we may have to add different cache lifetime options.
func WithCacheSize ¶
WithCacheSize option defines the cache size.
func WithDIDDomainResolver ¶
func WithDIDDomainResolver(resolver didDomainResolver) Option
WithDIDDomainResolver option sets the domain resolver.
func WithHTTPClient ¶
func WithHTTPClient(httpClient httpClient) Option
WithHTTPClient option is for custom http client.