Add statsclient - pure Go implementation for stats API
[govpp.git] / adapter / stats_api.go
index 146914d..798fcbd 100644 (file)
 package adapter
 
 import (
+       "errors"
        "fmt"
 )
 
+var (
+       ErrStatDirBusy  = errors.New("stat dir busy")
+       ErrStatDumpBusy = errors.New("stat dump busy")
+)
+
+var (
+       // DefaultStatsSocket is the default path for the VPP stat socket file.
+       DefaultStatsSocket = "/run/vpp/stats.sock"
+)
+
 // StatsAPI provides connection to VPP stats API.
 type StatsAPI interface {
        // Connect establishes client connection to the stats API.