Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStatsHandler ¶
NewStatsHandler returns an HTTP handler that exposes libkv.DB.Stats() as JSON. Backend-agnostic: works against any libkv.DB implementation (boltkv, badgerkv, memorykv).
Default: fast Stats — bucket inventory and total file size, no per-bucket key counts. With ?details=true: slow StatsDetailed — full per-bucket KeyCount and SizeB.
Example usage:
router.Path("/dbstats").Handler(db.NewStatsHandler(libDB))
curl ".../dbstats"
curl ".../dbstats?details=true"
func OpenBoltDB ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.