config

package
v1.34.6 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Types

type Config

type Config struct {
	Tasks    Tasks           `yaml:"tasks"`
	Database config.Database `yaml:"database"`
	HTTP     config.HTTP     `yaml:"http"`
}

func Default

func Default() Config

type DevicesCleanup

type DevicesCleanup struct {
	Interval Duration `yaml:"interval" envconfig:"TASKS__DEVICES_CLEANUP__INTERVAL"`
	MaxAge   Duration `yaml:"max_age"  envconfig:"TASKS__DEVICES_CLEANUP__MAX_AGE"`
}

type Duration

type Duration time.Duration

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(text []byte) error

func (*Duration) UnmarshalYAML

func (d *Duration) UnmarshalYAML(value *yaml.Node) error

type MessagesCleanup

type MessagesCleanup struct {
	Interval Duration `yaml:"interval" envconfig:"TASKS__MESSAGES_CLEANUP__INTERVAL"`
	MaxAge   Duration `yaml:"max_age"  envconfig:"TASKS__MESSAGES_CLEANUP__MAX_AGE"`
}

type MessagesHashing

type MessagesHashing struct {
	Interval Duration `yaml:"interval" envconfig:"TASKS__MESSAGES_HASHING__INTERVAL"`
}

type Tasks

type Tasks struct {
	MessagesHashing MessagesHashing `yaml:"messages_hashing"`
	MessagesCleanup MessagesCleanup `yaml:"messages_cleanup"`
	DevicesCleanup  DevicesCleanup  `yaml:"devices_cleanup"`
}

Jump to

Keyboard shortcuts

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