config

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Overview

Package config stores all server application settings for ngt agent

Package config stores all server application settings

Index

Constants

View Source
const AgentNGTInfo = "agent_core_ngt_info"

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	// Server represent all server configurations
	Server *config.Servers `json:"server_config" yaml:"server_config"`

	// Observability represent observability configurations
	Observability *config.Observability `json:"observability" yaml:"observability"`

	// NGT represent ngt core configuration
	NGT *config.NGT `json:"ngt" yaml:"ngt"`

	// GlobalConfig represent the global configuration
	GlobalConfig `json:",inline" yaml:",inline"`
}

Data represent a application setting data content (config.yaml). In K8s environment, this configuration is stored in K8s ConfigMap.

func NewConfig

func NewConfig(path string) (cfg *Data, err error)

NewConfig returns the Data struct or error from the given file path.

type GlobalConfig

type GlobalConfig = config.GlobalConfig

GlobalConfig is type alias for config.GlobalConfig.

Jump to

Keyboard shortcuts

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