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 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.
Click to show internal directories.
Click to hide internal directories.