common

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PEERS_CONNECTED = "peers_connected"
	PEER_LIMIT      = "peer_limit"
	KEY             = "key_%s"
)

define constants

Variables

This section is empty.

Functions

func ConnectRedis

func ConnectRedis(target string) (conn redis.Conn)

helper function to connect to redis

func GetPeers

func GetPeers(url string) (totalPeers int, err error)

get connected peers from prometheus metrics

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL