class CQL::Performance::Config

Overview

Nested configuration groups for better organization

Defined in:

performance/config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_env : self #

Load from environment variables


[View source]
def self.new(&block : self -> _) #

[View source]
def self.new #

[View source]

Instance Method Detail

def apply_environment_defaults #

Apply environment-specific defaults


[View source]

[View source]
def cache=(cache : CQL::Performance::Config::Cache) #

[View source]
def configure(&) #

Configure with a DSL


[View source]

[View source]
def detection=(detection : CQL::Performance::Config::Detection) #

[View source]
def development_mode? : Bool #

[View source]
def enabled? : Bool #

Convenience methods


[View source]

[View source]
def logging=(logging : CQL::Performance::Config::Logging) #

[View source]

Main configuration properties


[View source]
def monitoring=(monitoring : CQL::Performance::Config::Monitoring) #

Main configuration properties


[View source]
def production_mode? : Bool #

[View source]

[View source]
def profiling=(profiling : CQL::Performance::Config::Profiling) #

[View source]

[View source]
def reporting=(reporting : CQL::Performance::Config::Reporting) #

[View source]
def test_mode? : Bool #

[View source]
def to_h #

Export to hash for serialization


[View source]