add resource manager NetStat api

This commit is contained in:
vyzo
2022-01-20 11:36:11 +02:00
parent 8d3f98fe38
commit d05d5bcb70
4 changed files with 121 additions and 6 deletions
+3
View File
@@ -51,6 +51,9 @@ type Net interface {
NetBlockRemove(ctx context.Context, acl NetBlockList) error //perm:admin
NetBlockList(ctx context.Context) (NetBlockList, error) //perm:read
// ResourceManager API
NetStat(ctx context.Context, scope string) (NetStat, error) //perm:read
// ID returns peerID of libp2p node backing this API
ID(context.Context) (peer.ID, error) //perm:read
}