txp

package
v0.25.9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 2 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)

	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) 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