block

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0, BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Plugin holds the singleton instance of the plugin.
	Plugin *node.Plugin
)

Functions

func GetBlock

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

GetBlock is the handler for the /blocks/:blockID endpoint.

func GetBlockMetadata

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

GetBlockMetadata is the handler for the /blocks/:blockID/metadata endpoint.

func GetMarkerIndexConflictIDMapping

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

GetMarkerIndexConflictIDMapping is the handler for the /blocks/sequences/:sequenceID/markerindexconflictidmapping endpoint.

func GetSequence

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

GetSequence is the handler for the /blocks/sequences/:sequenceID endpoint.

func NewBlockMetadata

func NewBlockMetadata(metadata *tangleold.BlockMetadata) jsonmodels.BlockMetadata

NewBlockMetadata returns BlockMetadata from the given tangleold.BlockMetadata.

func PostPayload

func PostPayload(c echo.Context) error

PostPayload is the handler for the /blocks/payload endpoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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