Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error is the default error class for piecestore monitor errors Error = errs.Class("piecestore inspector") )
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
Endpoint does inspectory things
func NewEndpoint ¶
func NewEndpoint(log *zap.Logger, pieceInfo pieces.DB, kademlia *kademlia.Kademlia, usageDB bandwidth.DB, config piecestore.OldConfig) *Endpoint
NewEndpoint creates piecestore inspector instance
func (*Endpoint) Dashboard ¶
func (inspector *Endpoint) Dashboard(ctx context.Context, in *pb.DashboardRequest) (out *pb.DashboardResponse, err error)
Dashboard returns dashboard information
func (*Endpoint) Stats ¶
func (inspector *Endpoint) Stats(ctx context.Context, in *pb.StatsRequest) (out *pb.StatSummaryResponse, err error)
Stats returns current statistics about the storage node
Click to show internal directories.
Click to hide internal directories.