inspector

package
v1.104.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package inspector provides a private endpoint for monitoring status.

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 {
	internalpb.DRPCPieceStoreInspectorUnimplementedServer
	// contains filtered or unexported fields
}

Endpoint implements the inspector endpoints.

architecture: Endpoint

func NewEndpoint

func NewEndpoint(
	log *zap.Logger,
	pieceStore *pieces.Store,
	contact *contact.Service,
	pingStats *contact.PingStats,
	usageDB bandwidth.DB,
	pieceStoreConfig piecestore.OldConfig,
	dashboardAddress net.Addr,
	externalAddress string) *Endpoint

NewEndpoint creates piecestore inspector instance.

func (*Endpoint) Dashboard

func (inspector *Endpoint) Dashboard(ctx context.Context, in *internalpb.DashboardRequest) (out *internalpb.DashboardResponse, err error)

Dashboard returns dashboard information.

func (*Endpoint) Stats

func (inspector *Endpoint) Stats(ctx context.Context, in *internalpb.StatsRequest) (out *internalpb.StatSummaryResponse, err error)

Stats returns current statistics about the storage node.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL