querydiagnostics

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

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

func New

func New(
	logger log.Logger,
	tenantService metastorev1.TenantServiceClient,
	diagnosticsStore DiagnosticsStore,
) *Admin

func (*Admin) DiagnosticsExportAPIHandler

func (a *Admin) DiagnosticsExportAPIHandler() http.Handler

DiagnosticsExportAPIHandler returns a handler for exporting a diagnostic as a zip file.

func (*Admin) DiagnosticsGetAPIHandler

func (a *Admin) DiagnosticsGetAPIHandler() http.Handler

DiagnosticsGetAPIHandler returns a JSON API handler for getting a single diagnostic.

func (*Admin) DiagnosticsHandler

func (a *Admin) DiagnosticsHandler() http.Handler

DiagnosticsHandler returns an HTTP handler for the query diagnostics page shell.

func (*Admin) DiagnosticsImportAPIHandler

func (a *Admin) DiagnosticsImportAPIHandler() http.Handler

DiagnosticsImportAPIHandler returns a handler for importing a diagnostic from a zip file.

func (*Admin) DiagnosticsListAPIHandler

func (a *Admin) DiagnosticsListAPIHandler() http.Handler

DiagnosticsListAPIHandler returns a JSON API handler for listing diagnostics by tenant.

func (*Admin) DiagnosticsListHandler

func (a *Admin) DiagnosticsListHandler() http.Handler

DiagnosticsListHandler returns an HTTP handler for the stored diagnostics page shell.

func (*Admin) TenantsAPIHandler

func (a *Admin) TenantsAPIHandler() http.Handler

TenantsAPIHandler returns a JSON API handler for listing tenants.

type DiagnosticsStore

type DiagnosticsStore interface {
	ListByTenant(ctx context.Context, tenant string) ([]*diagnostics.DiagnosticSummary, error)
	Get(ctx context.Context, tenant string, id string) (*diagnostics.StoredDiagnostics, error)
	Export(ctx context.Context, tenant string, id string) ([]byte, error)
	Import(ctx context.Context, tenant string, id string, data []byte) (string, error)
}

Jump to

Keyboard shortcuts

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