dynamicconfiguration

package
v0.0.0-...-67a10c9 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package ssmlog is used to initialize ssm functional logger

Index

Constants

This section is empty.

Variables

View Source
var ExportPeriod = GetExportPeriod
View Source
var GetDynamicConfigFolderPath = func() string {
	return appconfig.DynamicConfigFolderPath
}
View Source
var MaxRollSize = GetMaxRollSize
View Source
var MaxRolls = GetMaxRolls
View Source
var PercentageLimit = GetPercentageLimit
View Source
var TelemetryDisabledTill = GetTelemetryDisabledTill

Functions

func EvictCache

func EvictCache()

func GetExportPeriod

func GetExportPeriod(namespace string) int

func GetMaxRollSize

func GetMaxRollSize(namespace string) int64

func GetMaxRolls

func GetMaxRolls(namespace string) int

func GetPercentageLimit

func GetPercentageLimit(namespace string) float64

func GetTelemetryDisabledTill

func GetTelemetryDisabledTill(namespace string) int64

func NewFileWatcher

func NewFileWatcher(log log.T, configFilePath string, replaceDynamicConfiguration func(log log.T, configFilePath string)) *configFileWatcher

Types

type DynamicConfiguration

type DynamicConfiguration struct {
	TelemetryDisabledTill int64   `json:"telemetryDisabledTillEpoch"`
	PercentageLimit       float64 `json:"percentageLimit"`
	MaxRolls              int     `json:"maxRolls"`
	MaxRollSize           int64   `json:"maxRollSize"`
	ExportPeriod          int     `json:"exportPeriodMinutes"`
}

type NamespaceConfiguration

type NamespaceConfiguration map[string]DynamicConfiguration

func GetCachedDynamicConfiguration

func GetCachedDynamicConfiguration() NamespaceConfiguration

return the cached dynamic configuration

func NewTelemetryDynamicConfiguration

func NewTelemetryDynamicConfiguration(log log.T, useWatcher bool, configFilePath string) NamespaceConfiguration

Jump to

Keyboard shortcuts

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