config

package
v0.0.0-...-24865f3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 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"`
}

Jump to

Keyboard shortcuts

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