txp

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trans

type Trans interface {
	PayloadPipe() sec.Pipe
	MessagePipe() sec.Pipe

	SetMessageOut(d *ssi.DID)

	EncMsg(msg *mesg.Msg) *mesg.Msg
	DecMsg(msg *mesg.Msg) *mesg.Msg

	EncDIDComMsg(msg didcomm.Msg) didcomm.Msg
	DecDIDComMsg(msg didcomm.Msg) didcomm.Msg

	Call(msgType string, msg *mesg.Msg) (rp *mesg.Payload, err error)
	DIDComCallEndp(endp, msgType string, msg didcomm.Msg) (rp didcomm.Payload, err error)
	EndpAddr() string
	String() string
}

type Transport

type Transport struct {
	PLPipe  sec.Pipe // Payload communication pipe
	MsgPipe sec.Pipe // Message communication
	Endp    string   // Given endpoint, Note! this is for the version 1 structure
}

Transport is communication mechanism between agents

func (Transport) DecMsg

func (t Transport) DecMsg(msg *mesg.Msg) *mesg.Msg

func (Transport) EncMsg

func (t Transport) EncMsg(msg *mesg.Msg) *mesg.Msg

func (Transport) Endpoint

func (t Transport) Endpoint() string

func (Transport) Message

func (t Transport) Message() sec.Pipe

func (Transport) Payload

func (t Transport) Payload() sec.Pipe

func (Transport) SetMessageOut

func (t Transport) SetMessageOut(d *ssi.DID)

Jump to

Keyboard shortcuts

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