router

package
v0.0.0-...-80b22ab Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvelopeHeightByProcessHandler

func EnvelopeHeightByProcessHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

EnvelopeHeightByProcessHandler writes the number of envelopes which share the given processID

func EnvelopeHeightFromNullifierHandler

func EnvelopeHeightFromNullifierHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

EnvelopeHeightFromNullifierHandler returns the height of the corresponding envelope nullifier

func GetBlockHandler

func GetBlockHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

GetBlockHandler writes a full block from the vochain

func GetBlockHeaderHandler

func GetBlockHeaderHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

GetBlockHeaderHandler writes a StoreBlock from the DB

func GetEnvelopeHandler

func GetEnvelopeHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

GetEnvelopeHandler writes a single envelope

func GetProcessHandler

func GetProcessHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

GetProcessHandler writes a single process

func GetProcessKeysHandler

func GetProcessKeysHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

GetProcessKeysHandler writes the given process' keys

func GetProcessResultsHandler

func GetProcessResultsHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

GetProcessResultsHandler writes the given process' results

func GetTxByHashHandler

func GetTxByHashHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

GetTxByHashHandler writes the tx corresponding to given hash key

func GetTxByHeightHandler

func GetTxByHeightHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

GetTxByHeightHandler writes the tx corresponding to given height key

func GetValidatorHandler

func GetValidatorHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

GetValidatorHandler writes the validator corresponding to given address key

func HeightHandler

func HeightHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

HeightHandler writes the int64 height value corresponding to given key

func HeightMapHandler

func HeightMapHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

HeightMapHandler writes the string:int64 height map corresponding to given key

func ListBlocksByValidatorHandler

func ListBlocksByValidatorHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

ListBlocksByValidatorHandler writes a list of blocks which share the given proposer

func ListBlocksHandler

func ListBlocksHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

ListBlocksHandler writes a list of blocks by height

func ListEntitiesHandler

func ListEntitiesHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

ListEntitiesHandler writes a list of entities from 'from'

func ListEnvelopesByProcessHandler

func ListEnvelopesByProcessHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

ListEnvelopesByProcessHandler writes a list of envelopes which share the given process

func ListEnvelopesHandler

func ListEnvelopesHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

ListEnvelopesHandler writes a list of envelopes

func ListProcessesByEntityHandler

func ListProcessesByEntityHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

ListProcessesByEntityHandler writes a list of processes belonging to 'entity'

func ListProcessesHandler

func ListProcessesHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

ListProcessesHandler writes a list of processes from 'from'

func ListTxsHandler

func ListTxsHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

ListTxsHandler writes a list of transactions starting with the given height key

func ListValidatorsHandler

func ListValidatorsHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

ListValidatorsHandler writes a list of validators from 'from'

func NumBlocksByValidatorHandler

func NumBlocksByValidatorHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

NumBlocksByValidatorHandler writes the number of blocks which share the given proposer

func PingHandler

func PingHandler() func(w http.ResponseWriter, r *http.Request)

PingHandler responds to a ping

func ProcessHeightByEntityHandler

func ProcessHeightByEntityHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

ProcessHeightByEntityHandler writes the number of processes which share the given entity

func RegisterRoutes

func RegisterRoutes(m *mux.Router, cfg *config.Cfg, d *db.ExplorerDB)

RegisterRoutes takes a mux and registers all the routes callbacks within this package

func SearchBlocksByValidatorHandler

func SearchBlocksByValidatorHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

SearchBlocksByValidatorHandler writes a list of blocks by search term belonging to given validator

func SearchBlocksHandler

func SearchBlocksHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

SearchBlocksHandler writes a list of blocks by search term

func SearchEntitiesHandler

func SearchEntitiesHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

SearchEntitiesHandler writes a list of entities by search term

func SearchEnvelopesHandler

func SearchEnvelopesHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

SearchEnvelopesHandler writes a list of envelopes by search term

func SearchProcessesHandler

func SearchProcessesHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

SearchProcessesHandler writes a list of processes by search term

func SearchTransactionsHandler

func SearchTransactionsHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

SearchTransactionsHandler writes a list of transactions by search term

func SearchValidatorsHandler

func SearchValidatorsHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

SearchValidatorsHandler writes a list of validators by search term

func StatsHandler

func StatsHandler(d *db.ExplorerDB, cfg *config.Cfg) func(w http.ResponseWriter, r *http.Request)

StatsHandler is the public api for all blockchain statistics & information

func TxHeightFromHashHandler

func TxHeightFromHashHandler(d *db.ExplorerDB) func(w http.ResponseWriter, r *http.Request)

TxHeightFromHashHandler indirects the given tx hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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