Documentation ¶
Index ¶
- func CloseResponseBody(respBody io.Closer)
- func CookieData(url *urllib.URL)
- func DecodeJSONMarshaller(jm JSONMarshaller, custom interface{}) error
- func DocumentLoader() (*ld.DocumentLoader, error)
- func ExpectedStatusCodeError(expected, actual int, respBytes []byte) error
- func GetDIDConnectRequestKey(issuerID, agentID string) string
- func GetDIDConnectResponseKey(issuerID, agentID string) string
- func GetDIDConnectV2RequestKey(issuerID, agentID string) string
- func GetDeepLinkWalletInvitationKey(userID string) string
- func GetRemoteWalletAppInfo(userID string) string
- func HTTPDo(method, url, contentType, token string, body io.Reader, tlsConfig *tls.Config) (*http.Response, error)
- func JSONBytesEqual(a, b []byte) (bool, error)
- func ResolveDID(vdriRegistry vdriapi.Registry, did string, maxRetry int) (*docdid.Doc, error)
- func SendHTTP(method, destination string, message []byte, result interface{}) error
- func StringsContains(val string, slice []string) bool
- type JSONMarshaller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseResponseBody ¶
CloseResponseBody closes the response body.
func CookieData ¶
CookieData logs the cookies contained within the bdd shared cookie jar for the given url.
func DecodeJSONMarshaller ¶
func DecodeJSONMarshaller(jm JSONMarshaller, custom interface{}) error
DecodeJSONMarshaller decodes the JSONMarshaller into the given object.
func DocumentLoader ¶
func DocumentLoader() (*ld.DocumentLoader, error)
DocumentLoader returns a JSON-LD document loader with preloaded test contexts.
func ExpectedStatusCodeError ¶
ExpectedStatusCodeError formats the status code error message.
func GetDIDConnectRequestKey ¶
GetDIDConnectRequestKey key for storing DID Connect request.
func GetDIDConnectResponseKey ¶
GetDIDConnectResponseKey key for storing DID Connect response.
func GetDIDConnectV2RequestKey ¶
GetDIDConnectV2RequestKey key for storing DID Connect request.
func GetDeepLinkWalletInvitationKey ¶
GetDeepLinkWalletInvitationKey key for wallet bridge invitation URLs.
func GetRemoteWalletAppInfo ¶
GetRemoteWalletAppInfo key for wallet info of remote wallet app.
func HTTPDo ¶
func HTTPDo(method, url, contentType, token string, body io.Reader, tlsConfig *tls.Config) (*http.Response, error)
HTTPDo util to send http requests.
func JSONBytesEqual ¶
JSONBytesEqual compares 2 JSON bytes
func ResolveDID ¶
ResolveDID waits for the DID to become available for resolution.
func StringsContains ¶
StringsContains check if the string is present in the string array.
Types ¶
type JSONMarshaller ¶
JSONMarshaller can marshal itself to JSON bytes.