mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-10 18:25:17 +00:00
15 lines
264 B
Go
15 lines
264 B
Go
package metricshelper
|
|
|
|
import "github.com/libp2p/go-libp2p/core/network"
|
|
|
|
func GetDirection(dir network.Direction) string {
|
|
switch dir {
|
|
case network.DirOutbound:
|
|
return "outbound"
|
|
case network.DirInbound:
|
|
return "inbound"
|
|
default:
|
|
return "unknown"
|
|
}
|
|
}
|