subscribe

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Modes is the list of supported subscription modes.
	Modes = [][2]string{
		{"once", "a single request/response channel. The target creates the relevant update messages, transmits them, and subsequently closes the RPC"},
		{"stream", "long-lived subscriptions which continue to transmit updates relating to the set of paths that are covered within the subscription indefinitely"},
		{"poll", "on-demand retrieval of data items via long-lived RPCs"},
	}

	// StreamModes is the list of supported streaming modes.
	StreamModes = [][2]string{
		{"target-defined", "the target MUST determine the best type of subscription to be created on a per-leaf basis"},
		{"sample", "the value of the data item(s) MUST be sent once per sample interval to the client"},
		{"on-change", "data updates are only sent when the value of the data item changes"},
	}
)

Functions

func New

func New(gApp *app.App) *cobra.Command

New create the subscribe command tree.

Types

This section is empty.

Jump to

Keyboard shortcuts

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