config

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Port           int
	ReadTimeoutMs  int           `json:",omitempty" yaml:",omitempty"`
	WriteTimeoutMs int           `json:",omitempty" yaml:",omitempty"`
	WriteTimeout   time.Duration `json:",omitempty" yaml:",omitempty"`
	MaxHeaderBytes int           `json:",omitempty" yaml:",omitempty"`

	// HTTP data buffer pool - used when reading a payload, for saving memory
	PoolMaxSize int `json:",omitempty" yaml:",omitempty"`
	BufferSize  int `json:",omitempty" yaml:",omitempty"`

	// Deprecated: to be moved to separate object in service/endpoint/config.Config
	MaxEvaluatorWaitMs      int           `json:",omitempty" yaml:",omitempty"`
	MaxEvaluatorWait        time.Duration `json:",omitempty" yaml:",omitempty"`
	MaxEvaluatorConcurrency int64         `json:",omitempty" yaml:",omitempty"`
}

Endpoint represents an endpoint

func (*Endpoint) Init

func (e *Endpoint) Init()

Init init applied default settings

type MetricsConfig added in v0.13.3

type MetricsConfig struct {
	Prometheus *PromConfig `json:",omitempty" yaml:",omitempty"`
}

type PromConfig added in v0.13.3

type PromConfig struct {
	// See service/endpoint.Build
	ModelIdletimeBuckets []float64
}

Jump to

Keyboard shortcuts

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