common

package
v0.25.31 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AckCreator = &AckFactor{}
View Source
var ProblemReportCreator = &ProblemReportFactor{}

Functions

This section is empty.

Types

type Ack

type Ack struct {
	Type   string            `json:"@type,omitempty"`
	ID     string            `json:"@id,omitempty"`
	Status string            `json:"status,omitempty"`
	Thread *decorator.Thread `json:"~thread,omitempty"`
}

Ack acknowledgement struct

type AckFactor

type AckFactor struct{}

func (*AckFactor) NewMessage

func (f *AckFactor) NewMessage(data []byte) didcomm.MessageHdr

func (*AckFactor) NewMsg

func (f *AckFactor) NewMsg(init didcomm.MsgInit) didcomm.MessageHdr

type AckImpl

type AckImpl struct {
	*Ack
}

MARK: Struct

func NewAck

func NewAck(r *Ack) *AckImpl

func NewAckMsg

func NewAckMsg(data []byte) *AckImpl

func (*AckImpl) FieldObj

func (p *AckImpl) FieldObj() interface{}

func (*AckImpl) ID

func (p *AckImpl) ID() string

func (*AckImpl) JSON

func (p *AckImpl) JSON() []byte

func (*AckImpl) SetID

func (p *AckImpl) SetID(id string)

func (*AckImpl) SetType

func (p *AckImpl) SetType(t string)

func (*AckImpl) Thread

func (p *AckImpl) Thread() *decorator.Thread

func (*AckImpl) Type

func (p *AckImpl) Type() string

type Code

type Code struct {
	Code string `json:"code"`
}

Code represents a problem report code

type Forward added in v0.25.27

type Forward struct {
	Type string                 `json:"@type,omitempty"`
	ID   string                 `json:"@id,omitempty"`
	To   string                 `json:"to,omitempty"`
	Msg  map[string]interface{} `json:"msg,omitempty"`
}

Forward route forward message. nolint:lll // url in the next line is long https://github.com/hyperledger/aries-rfcs/blob/main/concepts/0094-cross-domain-messaging/README.md#corerouting10forward

type ProblemReport

type ProblemReport struct {
	Type           string            `json:"@type"`
	ID             string            `json:"@id"`
	Description    Code              `json:"description"`
	ExplainLongTxt string            `json:"explain-ltxt,omitempty"` // ACApy
	Thread         *decorator.Thread `json:"~thread,omitempty"`
}

ProblemReport problem report definition TODO: need to provide full ProblemReport structure https://github.com/hyperledger/aries-framework-go/issues/912

type ProblemReportFactor

type ProblemReportFactor struct{}

func (*ProblemReportFactor) NewMessage

func (f *ProblemReportFactor) NewMessage(data []byte) didcomm.MessageHdr

func (*ProblemReportFactor) NewMsg

type ProblemReportImpl

type ProblemReportImpl struct {
	*ProblemReport
}

MARK: Struct

func NewProblemReport

func NewProblemReport(r *ProblemReport) *ProblemReportImpl

func NewProblemReportMsg

func NewProblemReportMsg(data []byte) *ProblemReportImpl

func (*ProblemReportImpl) FieldObj

func (p *ProblemReportImpl) FieldObj() interface{}

func (*ProblemReportImpl) ID

func (p *ProblemReportImpl) ID() string

func (*ProblemReportImpl) JSON

func (p *ProblemReportImpl) JSON() []byte

func (*ProblemReportImpl) SetID

func (p *ProblemReportImpl) SetID(id string)

func (*ProblemReportImpl) SetType

func (p *ProblemReportImpl) SetType(t string)

func (*ProblemReportImpl) Thread

func (p *ProblemReportImpl) Thread() *decorator.Thread

func (*ProblemReportImpl) Type

func (p *ProblemReportImpl) Type() string

Jump to

Keyboard shortcuts

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