debug

package
v0.15.10 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeString

func SanitizeString(s string) string

SanitizeString returns a sanitized version of the input string. If the input is empty, an empty string is returned. Otherwise a constant-length string (irrespective of the input length) is returned.

func TimeToString

func TimeToString(t time.Time) string

TimeToString returns a time in RFC3339-formatted string, so all debug-related times are in the same format.

Types

type Debuggable

type Debuggable interface {
	Debug() map[string]any
}

Debuggable is an optional interface that different vtadmin subcomponents can implement to provide information to debug endpoints.

Jump to

Keyboard shortcuts

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