Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PluginName contains the human readable name of the plugin. PluginName = "NetworkDelay" // CfgNetworkDelayOriginPublicKey defines the config flag of the issuer node public key. CfgNetworkDelayOriginPublicKey = "networkdelay.originPublicKey" )
View Source
const (
// ObjectName defines the name of the networkdelay object.
ObjectName = "networkdelay"
)
Variables ¶
View Source
var Type = payload.NewType(189, ObjectName, func(data []byte) (payload payload.Payload, err error) { payload, _, err = FromBytes(data) return })
Type represents the identifier which addresses the network delay Object type.
Functions ¶
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object represents the network delay object type.
func FromBytes ¶
FromBytes parses the marshaled version of an Object into a Go object. It either returns a new Object or fills an optionally provided Object with the parsed information.
func Parse ¶
func Parse(marshalUtil *marshalutil.MarshalUtil) (result *Object, err error)
Parse unmarshals an Object using the given marshalUtil (for easier marshaling/unmarshaling).
Click to show internal directories.
Click to hide internal directories.