xlink

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 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 Accepter

type Accepter interface {
	Accept(xlink Xlink) error
}

type Dialer

type Dialer interface {
	Dial(address string, id *identity.TokenId) error
}

type Factory

type Factory interface {
	CreateListener(id *identity.TokenId, f Forwarder, config map[interface{}]interface{}) (Listener, error)
	CreateDialer(id *identity.TokenId, f Forwarder, config map[interface{}]interface{}) (Dialer, error)
}

type Forwarder

type Forwarder interface {
	ForwardPayload(srcAddr xgress.Address, payload *xgress.Payload) error
	ForwardAcknowledgement(srcAddr xgress.Address, acknowledgement *xgress.Acknowledgement) error
}

type Listener

type Listener interface {
	Listen() error
	GetAdvertisement() string
	Close() error
}
type Xlink interface {
	Id() *identity.TokenId
	SendPayload(payload *xgress.Payload) error
	SendAcknowledgement(acknowledgement *xgress.Acknowledgement) error
	Close() error
}

Jump to

Keyboard shortcuts

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