Versions in this module Expand all Collapse all v8 v8.0.2 Jun 27, 2022 v8.0.1 Jun 27, 2022 Changes in this version + const CtxAddress + const CtxBlockDate + const CtxLimit + func APIDirectory(w http.ResponseWriter, r *http.Request) + func AddressPathCtxN(n int) func(next http.Handler) http.Handler + func AddressPostCtx(next http.Handler) http.Handler + func AgendIdCtx(next http.Handler) http.Handler + func AgendaIdCtx(next http.Handler) http.Handler + func BlockDateQueryCtx(next http.Handler) http.Handler + func BlockHashLatestCtx(r *http.Request, source DataSource) context.Context + func BlockHashPathAndIndexCtx(r *http.Request, source DataSource) context.Context + func BlockHashPathCtx(next http.Handler) http.Handler + func BlockIndex0PathCtx(next http.Handler) http.Handler + func BlockIndexLatestCtx(r *http.Request, source DataSource) context.Context + func BlockIndexOrHashPathCtx(next http.Handler) http.Handler + func BlockIndexPathCtx(next http.Handler) http.Handler + func BlockStepPathCtx(next http.Handler) http.Handler + func CacheControl(maxAge int64) func(http.Handler) http.Handler + func ChartGroupingCtx(next http.Handler) http.Handler + func ChartTypeCtx(next http.Handler) http.Handler + func DisableLog() + func ExchangeTokenContext(next http.Handler) http.Handler + func GetAddressCtx(r *http.Request, activeNetParams *chaincfg.Params) ([]string, error) + func GetAddressRawCtx(r *http.Request, activeNetParams *chaincfg.Params) ([]dcrutil.Address, error) + func GetAgendaIdCtx(r *http.Request) string + func GetBlockDateCtx(r *http.Request) string + func GetBlockHashCtx(r *http.Request) (string, error) + func GetBlockHeightCtx(r *http.Request, source DataSource) (int64, error) + func GetBlockIndex0Ctx(r *http.Request) int + func GetBlockIndexCtx(r *http.Request) int + func GetBlockStepCtx(r *http.Request) int + func GetChartGroupingCtx(r *http.Request) string + func GetChartTypeCtx(r *http.Request) string + func GetCountCtx(r *http.Request) int + func GetIndentCtx(r *http.Request) string + func GetLatestVoteVersionCtx(r *http.Request) int + func GetMCtx(r *http.Request) int + func GetNCtx(r *http.Request) int + func GetOffsetCtx(r *http.Request) int + func GetPageNumCtx(r *http.Request) int + func GetProposalTokenCtx(r *http.Request) string + func GetRawHexTx(r *http.Request) (string, error) + func GetStatusInfoCtx(r *http.Request) string + func GetTpCtx(r *http.Request) string + func GetTxIDCtx(r *http.Request) (*chainhash.Hash, error) + func GetTxIOIndexCtx(r *http.Request) int + func GetTxnsCtx(r *http.Request) ([]*chainhash.Hash, error) + func Indent(indent string) func(http.Handler) http.Handler + func MPathCtx(next http.Handler) http.Handler + func NPathCtx(next http.Handler) http.Handler + func Next(next http.Handler) http.Handler + func NoOrigin(next http.Handler) http.Handler + func OriginalRequestURI(next http.Handler) http.Handler + func PageNumCtx(next http.Handler) http.Handler + func PaginationCtx(next http.Handler) http.Handler + func PostBroadcastTxCtx(next http.Handler) http.Handler + func PostTxnsCtx(next http.Handler) http.Handler + func ProposalTokenCtx(next http.Handler) http.Handler + func RetrieveExchangeTokenCtx(r *http.Request) string + func RetrieveStickWidthCtx(r *http.Request) string + func Server(server string) func(http.Handler) http.Handler + func StakeVersionLatestCtx(r *http.Request, stakeVerFun StakeVersionsLatest) context.Context + func StatusInfoCtx(r *http.Request, source DataSource) context.Context + func StickWidthContext(next http.Handler) http.Handler + func TicketPoolCtx(next http.Handler) http.Handler + func Tollbooth(l *Limiter) func(http.Handler) http.Handler + func TransactionHashCtx(next http.Handler) http.Handler + func TransactionIOIndexCtx(next http.Handler) http.Handler + func TransactionsCtx(next http.Handler) http.Handler + func UseLogger(logger slog.Logger) + func ValidateTxnsPostCtx(next http.Handler) http.Handler + type DataSource interface + GetBlockHash func(idx int64) (string, error) + GetBlockHeight func(hash string) (int64, error) + GetHeight func() (int64, error) + type Limiter struct + func NewLimiter(max float64) *Limiter + type StakeVersionsLatest func() (*chainjson.StakeVersions, error) Other modules containing this package github.com/Decred-Next/dcrndata github.com/Decred-Next/dcrndata/middleware/v8