package
0.0.0-20190616130729-11120638d85f
Repository: https://github.com/bitum-project/bitumdata.git
Documentation: pkg.go.dev
# Functions
AddressCommandCtx returns a http.HandlerFunc that embeds the value at the url part {command} into the request context.
BlockDateLimitQueryCtx returns a http.Handlerfunc that embeds the {blockdate,limit} value in the request into the request context.
DisableLog disables all library log output.
FromToPaginationCtx will parse the query parameters for from/to values.
GetAddressCommandCtx retrieves the ctxAddrCmd data from the request context.
GetFromCtx retrieves the ctxFrom data ("from") from the request context.
GetLimitCtx retrieves the ctxLimit data from the request context.
GetNbBlocksCtx retrieves the ctxNbBlocks data from the request context.
GetNoAsmCtx retrieves the ctxNoAsm data ("noAsm") from the request context.
GetNoScriptSigCtx retrieves the ctxNoScriptSig data ("noScriptSig") from the request context.
GetNoSpentCtx retrieves the ctxNoSpent data ("noSpent") from the request context.
GetNoTxListCtx retrieves the ctxNoTxList data ("noTxList") from the request context.
GetToCtx retrieves the ctxTo data ("to") from the request context.
NbBlocksCtx will parse the query parameters for nbBlocks.
NewInsightApi is the constructor for InsightApi.
NewInsightApiRouter returns a new HTTP path router, ApiMux, for the Insight API, app.
NewSocketServer constructs a new SocketServer, registering handlers for the "connection", "disconnection", and "subscribe" events.
NoTxListCtx returns a http.Handlerfunc that embeds the {noTxList} value in the request into the request context.
PostAddrsTxsCtx middleware processes parameters given in the POST request body for an addrs endpoint.
PostAddrsUtxoCtx middleware processes parameters given in the POST request body for an addrs utxo endpoint.
UseLogger uses a specified Logger to output package logging info.
# Constants
APIVersion is an integer value, incremented for breaking changes.
# Structs
ApiMux contains the struct mux.
InsightApi contains the resources for the Insight HTTP API.
InsightSocketVin represents a single vin for the Insight "vin" JSON object that appears in a "tx" message from the "inv" room.
InsightSocketVout represents a single vout for the Insight "vout" JSON object that appears in a "tx" message from the "inv" room.
SocketServer wraps the socket.io server with the watched address list.
WebSocketTx models the JSON data sent as the tx event in the inv room.