Help us shape the future of Go! Take the 2026 Go Developer Survey

model

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 1 Imported by: 27

Documentation

Index

Constants

View Source
const (
	// DIDCommV1 type.
	DIDCommV1 = endpoint.DIDCommV1
	// DIDCommV2 type.
	DIDCommV2 = endpoint.DIDCommV2
	// Generic type.
	Generic = endpoint.Generic
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DIDCommV2Endpoint

type DIDCommV2Endpoint = endpoint.DIDCommV2Endpoint

DIDCommV2Endpoint contains ServiceEndpoint data specifically for DIDcommV2 and is wrapped in Endpoint as an array.

type Endpoint

type Endpoint = endpoint.Endpoint

Endpoint contains endpoint specific content. Content of ServiceEndpoint api above will be used by priority: 1- DIDcomm V2 2- DIDComm V1 3- DIDCore To force lower priority endpoint content, avoid setting higher priority data during Unmarshal() execution.

func NewDIDCommV1Endpoint

func NewDIDCommV1Endpoint(uri string) Endpoint

NewDIDCommV1Endpoint creates a DIDCommV1 endpoint.

func NewDIDCommV2Endpoint

func NewDIDCommV2Endpoint(endpoints []DIDCommV2Endpoint) Endpoint

NewDIDCommV2Endpoint creates a DIDCommV2 endpoint with the given array of endpoints. At the time of writing this comment, only the first endpoint is effective in the API. Additional logic is required to use a different index.

func NewDIDCoreEndpoint

func NewDIDCoreEndpoint(genericEndpoint interface{}) Endpoint

NewDIDCoreEndpoint creates a generic DIDCore endpoint.

type EndpointType

type EndpointType = endpoint.EndpointType

EndpointType endpoint type.

type ServiceEndpoint

type ServiceEndpoint = endpoint.ServiceEndpoint

ServiceEndpoint api for fetching ServiceEndpoint content based off of a DIDComm V1, V2 or DIDCore format.

Jump to

Keyboard shortcuts

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