diagnostics

package
v0.0.0-...-e01adf3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package diagnostics is used to provide diagnostic functionality to triage problems with reclient during failure scenarios.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUDSAddrWorks

func CheckUDSAddrWorks(ctx context.Context, addr string) error

CheckUDSAddrWorks checks if we are able to start a basic RPC server at the given UDS address. Useful to diagnost scandeps_server startup timeout issues.

func Run

func Run(ctx context.Context, in *DiagnosticInputs)

Run runs the diagnostics.

Types

type DiagnosticInputs

type DiagnosticInputs struct {
	UDSAddr string
}

DiagnosticInputs struct holds key state necessary for diagnostics to run.

type HelloRequest

type HelloRequest struct{}

HelloRequest identifies the hello world request.

type HelloResponse

type HelloResponse struct {
	Message string
}

HelloResponse identifies the hello world response.

type HelloService

type HelloService struct{}

HelloService is a simple service to provide a HelloWorld RPC.

func (*HelloService) HelloWorld

func (s *HelloService) HelloWorld(req *HelloRequest, res *HelloResponse) error

HelloWorld is the RPC method that returns a hello world response.

Jump to

Keyboard shortcuts

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