drng

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0, BSD-2-Clause Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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",
	"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
	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