model

package
v0.0.0-...-6b979cb Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DiscoveryClientReservedPrefix = "tmp.dc."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Cores                    []int             `yaml:"cores,omitempty"`
	Logging                  logging.Config    `yaml:"logging,omitempty"`
	ClientConfigDir          string            `yaml:"clientConfigDir,omitempty"`
	Debug                    DebugInfo         `yaml:"debug,omitempty"`
	ReconnectInterval        time.Duration     `yaml:"reconnectInterval,omitempty"`
	InternalDir              string            `yaml:"internalDir,omitempty"`
	LogPagePaginationEnabled bool              `yaml:"logPagePaginationEnabled"`
	MaxIOQueues              int               `yaml:"maxIOQueues"`
	AutoDetectEntries        AutoDetectEntries `yaml:"autoDetectEntries,omitempty"`
	NvmeHostIDPath           string            `yaml:"nvmeHostIDPath,omitempty"`
}

AppConfig application configuration

func LoadFromViper

func LoadFromViper() (*AppConfig, error)

LoadFromViper use viper package to load configuration from file cmd line and env.

type AutoDetectEntries

type AutoDetectEntries struct {
	Enabled              bool   `yaml:"enabled,omitempty"`
	Filename             string `yaml:"filename,omitempty"`
	DiscoveryServicePort uint32 `yaml:"discoveryServicePort,omitempty"`
}

type DebugInfo

type DebugInfo struct {
	Endpoint    string `yaml:"endpoint,omitempty"`
	Enablepprof bool   `yaml:"enablepprof,omitempty"`
	Metrics     bool   `yaml:"metrics,omitempty"`
}

Jump to

Keyboard shortcuts

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