Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrLogEndpointNotConfigured indicates that a log endpoint has not been configured. ErrLogEndpointNotConfigured = errors.New("log endpoint not configured") // ErrDisabled indicates that this Oak instance has no VCT. ErrDisabled = errors.New("disabled") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents VCT client.
func New ¶
func New(configRetriever configRetriever, signer signer, metrics metricsProvider, opts ...Option) *Client
New returns the client.
func (*Client) GetLogEndpoint ¶
GetLogEndpoint returns the log endpoint or error, ErrLogEndpointNotConfigured, if a log endpoint has not been configured.
type HTTPClient ¶
HTTPClient represents HTTP client.
type Option ¶
type Option func(opts *Client)
Option is a config client instance option.
func WithAuthReadToken ¶
WithAuthReadToken add auth token.
func WithAuthWriteToken ¶
WithAuthWriteToken add auth token.
func WithDocumentLoader ¶
func WithDocumentLoader(loader ld.DocumentLoader) Option
WithDocumentLoader allows providing document loader.
func WithHTTPClient ¶
func WithHTTPClient(client HTTPClient) Option
WithHTTPClient allows providing HTTP client.
type Proof ¶
type Proof struct { Context interface{} `json:"@context"` Proof verifiable.Proof `json:"proof"` }
Proof represents response.
Click to show internal directories.
Click to hide internal directories.