client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package client provide an SDK for the Affinity Gateway service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Issuer

type Issuer struct {
	DID string `json:"issuerDid"`
	PIN string `json:"issuerPin"`
}

Issuer of verifiable credentials.

type Options

type Options struct {
	// Time to wait for requests, in seconds
	Timeout uint

	// Time to maintain open the connection with the service, in seconds
	KeepAlive uint

	// Maximum network connections to keep open with the service
	MaxConnections uint

	// User agent value to report to the service
	UserAgent string
}

Options available when configuring an SDK client instance.

type SDK

type SDK struct {

	// Service handlers
	DID *didService
	VC  *vcService
	// contains filtered or unexported fields
}

SDK provides a simple interface to access all the functionality provided by the Affinity gateway service.

func New

func New(opts *Options) (*SDK, error)

New SDK instance to access the Affinity gateway service. If no configuration options are provided (i.e., nil), sane default values are used.

Jump to

Keyboard shortcuts

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