inspector

package
v1.45.1-rc Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Error wraps errors returned from Server struct methods.
	Error = errs.Class("inspector")
)

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	internalpb.DRPCHealthInspectorUnimplementedServer
	// contains filtered or unexported fields
}

Endpoint for checking object and segment health.

architecture: Endpoint

func NewEndpoint

func NewEndpoint(log *zap.Logger, cache *overlay.Service, metabase *metabase.DB) *Endpoint

NewEndpoint will initialize an Endpoint struct.

func (*Endpoint) ObjectHealth

func (endpoint *Endpoint) ObjectHealth(ctx context.Context, in *internalpb.ObjectHealthRequest) (resp *internalpb.ObjectHealthResponse, err error)

ObjectHealth will check the health of an object.

func (*Endpoint) SegmentHealth

func (endpoint *Endpoint) SegmentHealth(ctx context.Context, in *internalpb.SegmentHealthRequest) (_ *internalpb.SegmentHealthResponse, err error)

SegmentHealth will check the health of a segment.

Jump to

Keyboard shortcuts

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