constant

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package constant defines the constant keys for structured configuration components. These keys serve as a contract between the configuration interface and its implementations, ensuring consistent access to different parts of the configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentKey

type ComponentKey string

ComponentKey defines the type for configuration component keys.

const (
	// ConfigApp is the key for the application's core configuration.
	ConfigApp ComponentKey = "app"
	// ComponentLogger is the key for the logger configuration.
	ComponentLogger ComponentKey = "logger"
	// ComponentData is the key for the data sources (databases, caches) configuration.
	ComponentData ComponentKey = "data"
	// ComponentDatabases is the key for the database configurations.
	ComponentDatabases ComponentKey = "databases"
	// ComponentCaches is the key for the cache configurations.
	ComponentCaches ComponentKey = "caches"
	// ComponentObjectStores is the key for the object store configurations.
	ComponentObjectStores ComponentKey = "objectstores"
	// ComponentRegistries is the key for the service discovery/registry configuration.
	ComponentRegistries ComponentKey = "discoveries"
	// ComponentDefaultRegistry is the key for the default registry name.
	ComponentDefaultRegistry ComponentKey = "default_registry_name"
	// ComponentMiddlewares is the key for the middleware configuration.
	ComponentMiddlewares ComponentKey = "middlewares"
	// ComponentServers is the key for the server (e.g., HTTP, gRPC) configuration.
	ComponentServers ComponentKey = "servers"
	// ComponentClients is the key for the client/service consumer configuration.
	ComponentClients ComponentKey = "clients"
)

Jump to

Keyboard shortcuts

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