Skip to content
Snippets Groups Projects

Resolve "Add gRPC Health Check for goSDN-tview"

8 files
+ 110
43
Compare changes
  • Side-by-side
  • Inline
Files
8
  • e3616cff
    added gRPC Health Check · e3616cff
    Malte Bauch authored
    - health check added
    - changed grpcStatus to use health check
    
    Currently this checks the overall status of the server -> running or
    not.
    Health Check has to be set by the gRPC server explicitly (can be added
    later).
package app
package app
 
//TODO: App should be a Singleton i guess
import (
import (
"github.com/rivo/tview"
"github.com/rivo/tview"
)
)
@@ -56,6 +57,11 @@ func (a *App) Draw() {
@@ -56,6 +57,11 @@ func (a *App) Draw() {
a.app.Draw()
a.app.Draw()
}
}
 
//QueueUpdateDraw calls tview.QueueUpdateDraw()
 
func (a *App) QueueUpdateDraw(f func()) {
 
a.app.QueueUpdateDraw(f)
 
}
 
//SetFocus sets the focus on new tview.Primitive
//SetFocus sets the focus on new tview.Primitive
func (a *App) SetFocus(v tview.Primitive) {
func (a *App) SetFocus(v tview.Primitive) {
a.app.SetFocus(v)
a.app.SetFocus(v)
Loading