route

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DIDExchangeClient DIDExchange
	MediatorClient    Mediator
	ServiceEndpoint   string
	AriesMessenger    service.Messenger
	MsgRegistrar      *msghandler.Registrar
	VDRIRegistry      vdr.Registry
	Store             storage.Provider
	ConnectionLookup  connectionRecorder
	MediatorSvc       mediatorsvc.ProtocolService
	KeyManager        kms.KeyManager
	KeyType           kms.KeyType
	KeyAgrType        kms.KeyType
}

Config holds configuration.

type ConnReq

type ConnReq struct {
	ID     string            `json:"@id,omitempty"`
	Type   string            `json:"@type,omitempty"`
	Thread *decorator.Thread `json:"~thread,omitempty"`
	Data   *ConnReqData      `json:"data,omitempty"`
}

ConnReq model.

type ConnReqData

type ConnReqData struct {
	DIDDoc json.RawMessage `json:"didDoc,omitempty"`
}

ConnReqData model for error data in ConnReq.

type ConnResp

type ConnResp struct {
	ID   string `json:"@id,omitempty"`
	Type string `json:"@type,omitempty"`
}

ConnResp model.

type DIDDocReq

type DIDDocReq struct {
	ID   string `json:"@id,omitempty"`
	Type string `json:"@type,omitempty"`
}

DIDDocReq model.

type DIDDocResp

type DIDDocResp struct {
	ID   string          `json:"@id,omitempty"`
	Type string          `json:"@type,omitempty"`
	Data *DIDDocRespData `json:"data,omitempty"`
}

DIDDocResp model.

type DIDDocRespData

type DIDDocRespData struct {
	ErrorMsg string          `json:"errorMsg,omitempty"`
	DIDDoc   json.RawMessage `json:"didDoc,omitempty"`
}

DIDDocRespData model for error data in DIDDocResp.

type DIDExchange

type DIDExchange interface {
	CreateConnection(myDID string, theirDID *did.Doc, options ...didexchange.ConnectionOption) (string, error)
}

DIDExchange client.

type ErrorResp

type ErrorResp struct {
	ID   string         `json:"@id,omitempty"`
	Type string         `json:"@type,omitempty"`
	Data *ErrorRespData `json:"data,omitempty"`
}

ErrorResp model.

type ErrorRespData

type ErrorRespData struct {
	ErrorMsg string `json:"errorMsg,omitempty"`
}

ErrorRespData model for error data in ErrorResp.

type Mediator

type Mediator interface {
	Register(connectionID string) error
	GetConfig(connID string) (*mediatorsvc.Config, error)
}

Mediator client.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service svc.

func New

func New(config *Config) (*Service, error)

New returns a new Service.

func (*Service) GetDIDDoc

func (o *Service) GetDIDDoc(connID string, requiresBlindedRoute bool) (*did.Doc, error)

GetDIDDoc returns the did doc with router endpoint/keys if its registered, else returns the doc with default endpoint.

Jump to

Keyboard shortcuts

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