Versions in this module Expand all Collapse all v5 v5.1.1 Aug 19, 2019 v5.0.1 Jul 19, 2019 Changes in this version + const APIVersion + func AddressCommandCtx(next http.Handler) http.Handler + func BlockDateLimitQueryCtx(next http.Handler) http.Handler + func DisableLog() + func FromToPaginationCtx(next http.Handler) http.Handler + func GetAddressCommandCtx(r *http.Request) (string, bool) + func GetFromCtx(r *http.Request) int64 + func GetLimitCtx(r *http.Request) int + func GetNbBlocksCtx(r *http.Request) int + func GetNoAsmCtx(r *http.Request) bool + func GetNoScriptSigCtx(r *http.Request) bool + func GetNoSpentCtx(r *http.Request) bool + func GetNoTxListCtx(r *http.Request) int + func GetToCtx(r *http.Request) (int64, bool) + func NbBlocksCtx(next http.Handler) http.Handler + func NoTxListCtx(next http.Handler) http.Handler + func PostAddrsTxsCtx(next http.Handler) http.Handler + func PostAddrsUtxoCtx(next http.Handler) http.Handler + func UseLogger(logger slog.Logger) + type ApiMux struct + func NewInsightApiRouter(app *InsightApi, useRealIP, compression bool) ApiMux + type InsightApi struct + BlockData *dcrpg.ChainDBRPC + JSONIndent string + ReqPerSecLimit float64 + func NewInsightApi(client *rpcclient.Client, blockData *dcrpg.ChainDBRPC, params *chaincfg.Params, ...) *InsightApi + func (iapi *InsightApi) BlockHashPathAndIndexCtx(next http.Handler) http.Handler + func (iapi *InsightApi) DcrToInsightBlock(inBlocks []*dcrjson.GetBlockVerboseResult) ([]*apitypes.InsightBlockResult, error) + func (iapi *InsightApi) DcrToInsightTxns(txs []*dcrjson.TxRawResult, noAsm, noScriptSig, noSpent bool) ([]apitypes.InsightTx, error) + func (iapi *InsightApi) GetPeerStatus(w http.ResponseWriter, r *http.Request) + func (iapi *InsightApi) SetReqRateLimit(reqPerSecLimit float64) + func (iapi *InsightApi) StatusInfoCtx(next http.Handler) http.Handler + func (iapi *InsightApi) TxConverter(txs []*dcrjson.TxRawResult) ([]apitypes.InsightTx, error) + func (iapi *InsightApi) ValidatePostCtx(next http.Handler) http.Handler + type InsightSocketVin struct + Addresses []string + TxID string + Value *int64 + Vout *uint32 + type InsightSocketVout struct + Address string + Value int64 + func (v *InsightSocketVout) MarshalJSON() ([]byte, error) + type SocketServer struct + func NewSocketServer(params *chaincfg.Params, txGetter txhelpers.RawTransactionGetter) (*SocketServer, error) + func (soc *SocketServer) SendNewTx(rawTx *dcrjson.TxRawResult) error + func (soc *SocketServer) Store(blockData *blockdata.BlockData, msgBlock *wire.MsgBlock) error + type WebSocketTx struct + Hash string + Size int + TotalOut int64 + Vins []InsightSocketVin + Vouts []InsightSocketVout Other modules containing this package github.com/decred/dcrdata github.com/decred/dcrdata/v3 github.com/decred/dcrdata/v4