feat: Add node uptime rpc / output in info command

This commit is contained in:
Łukasz Magiera
2022-10-11 10:11:09 +02:00
parent e74838f024
commit 2c11f9d265
17 changed files with 119 additions and 0 deletions
+4
View File
@@ -3,6 +3,7 @@ package api
import (
"context"
"fmt"
"time"
"github.com/google/uuid"
@@ -49,6 +50,9 @@ type Common interface {
// trigger graceful shutdown
Shutdown(context.Context) error //perm:admin
// StartTime returns node start time
StartTime(context.Context) (time.Time, error) //perm:read
// Session returns a random UUID of api provider session
Session(context.Context) (uuid.UUID, error) //perm:read