introspection

package
v0.0.0-...-69e95d2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Port = 51678
)

Variables

This section is empty.

Functions

func NewServer

func NewServer(agentState v1.AgentState, metricsFactory metrics.EntryFactory, options ...ConfigOpt) (*http.Server, error)

Create a new HTTP Introspection Server

Types

type Config

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

Configuration for Introspection Server

type ConfigOpt

type ConfigOpt func(*Config)

Function type for updating Introspection Server config

func WithReadTimeout

func WithReadTimeout(readTimeout time.Duration) ConfigOpt

Set Introspection Server read timeout

func WithRuntimeStats

func WithRuntimeStats(enableRuntimeStats bool) ConfigOpt

Set if Introspection Server should accept profiling requests

func WithWriteTimeout

func WithWriteTimeout(writeTimeout time.Duration) ConfigOpt

Set Introspection Server write timeout

Directories

Path Synopsis
v1
mocks
Package mock_v1 is a generated GoMock package.
Package mock_v1 is a generated GoMock package.

Jump to

Keyboard shortcuts

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