runtimecfg

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RuntimeConfigHandler

func RuntimeConfigHandler(s *Service, defaultLimits config.Limits) func(w http.ResponseWriter, r *http.Request)

path:/runtime_config Current Runtime Config (incl. Overrides) path:/runtime_config?mode=diff Current Runtime Config (show only values that differ from the defaults)

func YAMLMarshalUnmarshal

func YAMLMarshalUnmarshal(in interface{}) (map[string]interface{}, error)

YAMLMarshalUnmarshal utility function that converts a YAML interface in a map doing marshal and unmarshal of the parameter note: yaml.v2 default map model like map[interface{}]interface{} upgrade to v3, map model breaking change to map[string]interface{}

Types

type Service

type Service struct {
	services.Base
	// contains filtered or unexported fields
}

include Shard retention polices and Index retention polices

func NewService

func NewService(config config.RuntimeConfig, logger *logger.Logger) *Service

func (*Service) AllByUserID

func (s *Service) AllByUserID() map[string]*config.Limits

func (*Service) ByUserID

func (s *Service) ByUserID(userID string) *config.Limits

implement interface's methods: TenantLimits

Jump to

Keyboard shortcuts

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