debug

package
v0.65.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: BSD-3-Clause, AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package debug provides HTTP debug endpoints and CLI client for the proxy server.

Package debug provides HTTP debug endpoints for the proxy server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client provides CLI access to debug endpoints.

func NewClient

func NewClient(baseURL string, jsonOutput bool, out io.Writer) *Client

NewClient creates a new debug client.

func (*Client) ClientStatus

func (c *Client) ClientStatus(ctx context.Context, accountID string, filters StatusFilters) error

ClientStatus fetches the status of a specific client.

func (*Client) ClientSyncResponse

func (c *Client) ClientSyncResponse(ctx context.Context, accountID string) error

ClientSyncResponse fetches the sync response of a specific client.

func (*Client) Health

func (c *Client) Health(ctx context.Context) error

Health fetches the health status.

func (*Client) ListClients

func (c *Client) ListClients(ctx context.Context) error

ListClients fetches the list of all clients.

func (*Client) PingTCP

func (c *Client) PingTCP(ctx context.Context, accountID, host string, port int, timeout string) error

PingTCP performs a TCP ping through a client.

func (*Client) SetLogLevel

func (c *Client) SetLogLevel(ctx context.Context, accountID, level string) error

SetLogLevel sets the log level of a specific client.

func (*Client) StartClient

func (c *Client) StartClient(ctx context.Context, accountID string) error

StartClient starts a specific client.

func (*Client) StopClient

func (c *Client) StopClient(ctx context.Context, accountID string) error

StopClient stops a specific client.

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler provides HTTP debug endpoints.

func NewHandler

func NewHandler(provider clientProvider, healthChecker healthChecker, logger *log.Logger) *Handler

NewHandler creates a new debug handler.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles debug requests.

func (*Handler) SetCertStatus

func (h *Handler) SetCertStatus(cs certStatus)

SetCertStatus sets the certificate status provider for ACME prefetch observability.

type StatusFilters

type StatusFilters struct {
	IPs            []string
	Names          []string
	Status         string
	ConnectionType string
}

StatusFilters contains filter options for status queries.

Jump to

Keyboard shortcuts

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