drng

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0, BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "WebAPIToolsDRNGEndpoint"

PluginName is the name of the web API tools DRNG endpoint plugin.

View Source
const (

	// RouteDiagnosticsDRNG is the API route for DRNG diagnostics
	RouteDiagnosticsDRNG = routeDiagnostics + "/drng"
)

Variables

View Source
var DiagnosticDRNGMessagesTableDescription = []string{
	"ID",
	"IssuerID",
	"IssuerPublicKey",
	"IssuanceTime",
	"ArrivalTime",
	"SolidTime",
	"ScheduledTime",
	"BookedTime",
	"OpinionFormedTime",
	"dRNGPayloadType",
	"InstanceID",
	"Round",
	"PreviousSignature",
	"Signature",
	"DistributedPK",
}

DiagnosticDRNGMessagesTableDescription holds the description of the diagnostic dRNG messages.

View Source
var (
	// Plugin is the plugin instance of the web API tools messages endpoint plugin.
	Plugin = node.NewPlugin(PluginName, deps, node.Enabled, configure)
)

Functions

func DiagnosticDRNGMessagesHandler

func DiagnosticDRNGMessagesHandler(c echo.Context) (err error)

DiagnosticDRNGMessagesHandler runs the diagnostic over the Tangle.

Types

type DiagnosticDRNGMessagesInfo

type DiagnosticDRNGMessagesInfo struct {
	ID                string
	IssuerID          string
	IssuerPublicKey   string
	IssuanceTimestamp time.Time
	ArrivalTime       time.Time
	SolidTime         time.Time
	ScheduledTime     time.Time
	BookedTime        time.Time
	OpinionFormedTime time.Time
	PayloadType       string
	InstanceID        uint32
	Round             uint64
	PreviousSignature string
	Signature         string
	DistributedPK     string
}

DiagnosticDRNGMessagesInfo holds the information of a dRNG message.

Jump to

Keyboard shortcuts

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