config

package
v1.7.16 Latest Latest
Warning

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

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

Documentation

Overview

Package config stores all server application settings

Package config stores all server application settings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.GlobalConfig `json:",inline" yaml:",inline"`

	// 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"`

	// Job represents the default benchmark job configuration and job images
	Job *config.OperatorJobConfig `json:"job" yaml:"job"`
}

Config 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 *Config, err error)

NewConfig represents the set config from the given setting 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