Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.98.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMaxBufferedResponseBytes = 128 << 20

DefaultMaxBufferedResponseBytes bounds the response bodies one runner process holds in memory at once when ECHOPOINT_MAX_BUFFERED_RESPONSE_BYTES is unset.

Variables

This section is empty.

Functions

func MaxBufferedResponseBytes added in v0.95.0

func MaxBufferedResponseBytes() (int64, error)

MaxBufferedResponseBytes reads ECHOPOINT_MAX_BUFFERED_RESPONSE_BYTES, the response body bytes all request nodes of the process hold at once, defaulting to DefaultMaxBufferedResponseBytes.

func MaxResponseBytes added in v0.94.0

func MaxResponseBytes() (int64, error)

MaxResponseBytes reads ECHOPOINT_MAX_RESPONSE_BYTES, the largest response body a request node reads, defaulting to 10 MiB.

Types

type Config

type Config struct {
	BaseURL             string
	OrganizationID      string
	RunnerAPIKey        string
	RunnerID            string
	MaxParallelFlows    int
	MsBetweenRequests   int
	HeartbeatInterval   time.Duration
	RequestTimeout      time.Duration
	IdleBackoff         time.Duration
	ErrorBackoff        time.Duration
	ShutdownGracePeriod time.Duration
	LogLevel            zerolog.Level
	LogFormat           string
	FlowAPIKey          string
	MaxResponseBytes    int64
	// MaxBufferedResponseBytes bounds the response bodies every flow of the
	// runner holds in memory at once; zero sets no bound.
	MaxBufferedResponseBytes int64
}

func Load

func Load() (Config, error)

Jump to

Keyboard shortcuts

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