package metricshelper
import "github.com/libp2p/go-libp2p/p2p/metricshelper"
Index ¶
- func GetDirection(dir network.Direction) string
- func GetIPVersion(addr ma.Multiaddr) string
- func GetStringSlice() *[]string
- func GetTransport(a ma.Multiaddr) string
- func PutStringSlice(s *[]string)
- func RegisterCollectors(reg prometheus.Registerer, collectors ...prometheus.Collector)
Functions ¶
func GetDirection ¶
func GetIPVersion ¶
func GetStringSlice ¶
func GetStringSlice() *[]string
func GetTransport ¶
func PutStringSlice ¶
func PutStringSlice(s *[]string)
func RegisterCollectors ¶
func RegisterCollectors(reg prometheus.Registerer, collectors ...prometheus.Collector)
RegisterCollectors registers the collectors with reg ignoring reregistration error and panics on any other error
Source Files ¶
conn.go dir.go pool.go registerer.go
- Version
- v0.42.0 (latest)
- Published
- Jun 18, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 1 week ago –
Tools for package owners.