config

package
v3.0.0-...-abe69ee Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Enabled       bool          `envconfig:"CACHE_ENABLED"`
	CleanPeriod   time.Duration `envconfig:"CACHE_CLEAN_PERIOD"`
	ClientsTTL    time.Duration `envconfig:"CACHE_CLIENTS_TTL"`
	StaticDataTTL time.Duration `envconfig:"STATIC_DATA_TTL"`
}

func Get

func Get() (*Cache, error)

Get the application and returns the configuration structure

func (*Cache) String

func (c *Cache) String() string

String is implemented to prevent sensitive fields being logged. The config is returned as JSON with sensitive fields omitted.

func (*Cache) Validate

func (c *Cache) Validate() error

Jump to

Keyboard shortcuts

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