transport

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 1 Imported by: 46

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InboundMessageHandler

type InboundMessageHandler func(message []byte) error

InboundMessageHandler handles the inbound requests. The transport will unpack the payload prior to the message handle invocation.

type InboundProvider

type InboundProvider interface {
	InboundMessageHandler() InboundMessageHandler
	Packager() transport.Packager
}

InboundProvider contains dependencies for starting the inbound transport. It is typically created by using aries.Context().

type InboundTransport

type InboundTransport interface {
	// starts the inbound transport
	Start(prov InboundProvider) error

	// stops the inbound transport
	Stop() error

	// returns the endpoint
	Endpoint() string
}

InboundTransport interface definition for inbound transport layer

type OutboundTransport

type OutboundTransport interface {
	// Send send a2a exchange data
	Send(data []byte, destination string) (string, error)
	// Accept url
	Accept(string) bool
}

OutboundTransport interface definition for transport layer This is the client side of the agent

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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