config

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.Config `yaml:",inline"`
	LogLevel      string           `validate:"omitempty,oneof=debug trace info warn error fatal panic" yaml:"log_level"`
	Indexer       Indexer          `yaml:"indexer"`
	Profiler      *profiler.Config `validate:"omitempty"                                               yaml:"profiler"`
}

func (*Config) Substitute

func (c *Config) Substitute() error

Substitute -

type Indexer

type Indexer struct {
	Name         string `validate:"omitempty"          yaml:"name"`
	ThreadsCount uint32 `validate:"omitempty,min=1"    yaml:"threads_count"`
	StartLevel   int64  `validate:"omitempty"          yaml:"start_level"`
	BlockPeriod  int64  `validate:"omitempty"          yaml:"block_period"`
	ScriptsDir   string `validate:"omitempty,dir"      yaml:"scripts_dir"`
	BlobSaver    string `validate:"omitempty,oneof=r2" yaml:"blob_saver"`
}

Jump to

Keyboard shortcuts

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