remotehostnameimpl

package
v0.0.0-...-bfe00b6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package remotehostnameimpl provides a function to get the hostname from core agent.

Index

Constants

View Source
const (

	// AgentCachePrefix is the common root to use to prefix all the cache
	// keys for any value regarding the Agent
	AgentCachePrefix = "agent"

	// NoExpiration maps to go-cache corresponding value
	NoExpiration = cache.NoExpiration
)

Variables

This section is empty.

Functions

func Module

func Module(opts ...Option) fxutil.Module

Module defines the fx options for this component.

Types

type Option

type Option func(*remotehostimpl)

Option configures the remote hostname component retry behavior.

func WithMaxAttempts

func WithMaxAttempts(maxAttempts uint) Option

WithMaxAttempts sets the maximum number of retry attempts to reach the core-agent for hostname resolution.

func WithMaxRetryDelay

func WithMaxRetryDelay(maxRetryDelay time.Duration) Option

WithMaxRetryDelay caps the exponential backoff between retry attempts.

Jump to

Keyboard shortcuts

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