decorator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 54

Documentation

Index

Constants

View Source
const (
	// TransportReturnRouteNone return route option none
	TransportReturnRouteNone = "none"

	// TransportReturnRouteAll return route option all
	TransportReturnRouteAll = "all"

	// TransportReturnRouteThread return route option thread
	TransportReturnRouteThread = "thread"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ReturnRoute added in v0.1.1

type ReturnRoute struct {
	Value string `json:"~return_route,omitempty"`
}

ReturnRoute works with Transport decorator. Acceptable values - "none", "all" or "thread".

type Thread

type Thread struct {
	ID             string         `json:"thid,omitempty"`
	PID            string         `json:"pthid,omitempty"`
	SenderOrder    int            `json:"sender_order,omitempty"`
	ReceivedOrders map[string]int `json:"received_orders,omitempty"`
}

Thread thread data

type Timing

type Timing struct {
	ExpiresTime time.Time `json:"expires_time,omitempty"`
}

Timing keeps expiration time

type Transport added in v0.1.1

type Transport struct {
	ReturnRoute *ReturnRoute `json:"~transport,omitempty"`
}

Transport transport decorator https://github.com/hyperledger/aries-rfcs/tree/master/features/0092-transport-return-route

Jump to

Keyboard shortcuts

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