config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 4 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 {
	Log    Log    `yaml:"log"`
	Server Server `yaml:"server"`

	HttpStatus HttpStatus `yaml:"http_status"`

	Healthcheck Healthcheck `yaml:"healthcheck"`

	HealthcheckGeth       HealthcheckGeth       `yaml:"healthcheck_geth"`
	HealthcheckLighthouse HealthcheckLighthouse `yaml:"healthcheck_lighthouse"`
	HealthcheckOpNode     HealthcheckOpNode     `yaml:"healthcheck_op_node"`
	HealthcheckReth       HealthcheckReth       `yaml:"healthcheck_reth"`
}

func (*Config) Preprocess added in v0.1.1

func (c *Config) Preprocess() error

type Healthcheck

type Healthcheck struct {
	BlockAgeThreshold time.Duration `yaml:"block_age_threshold"`
	CacheCoolOff      time.Duration `yaml:"cache_cool_off"`
	Timeout           time.Duration `yaml:"timeout"`
}

func (*Healthcheck) Preprocess added in v0.1.1

func (c *Healthcheck) Preprocess() error

type HealthcheckGeth

type HealthcheckGeth struct {
	BaseURL           string        `yaml:"base_url"`
	BlockAgeThreshold time.Duration `yaml:"-"`
}

func (*HealthcheckGeth) Preprocess added in v0.1.1

func (c *HealthcheckGeth) Preprocess() error

type HealthcheckLighthouse

type HealthcheckLighthouse struct {
	BaseURL           string        `yaml:"base_url"`
	BlockAgeThreshold time.Duration `yaml:"-"`
}

func (*HealthcheckLighthouse) Preprocess added in v0.1.1

func (c *HealthcheckLighthouse) Preprocess() error

type HealthcheckOpNode

type HealthcheckOpNode struct {
	BaseURL              string        `yaml:"base_url"`
	BlockAgeThreshold    time.Duration `yaml:"-"`
	ConfirmationDistance uint64        `yaml:"confirmation_distance"`
}

func (*HealthcheckOpNode) Preprocess added in v0.1.1

func (c *HealthcheckOpNode) Preprocess() error

type HealthcheckReth

type HealthcheckReth struct {
	BaseURL           string        `yaml:"base_url"`
	BlockAgeThreshold time.Duration `yaml:"-"`
}

func (*HealthcheckReth) Preprocess added in v0.1.1

func (c *HealthcheckReth) Preprocess() error

type HttpStatus

type HttpStatus struct {
	Ok      int `yaml:"ok"`
	Warning int `yaml:"warning"`
	Error   int `yaml:"error"`
}

func (*HttpStatus) Preprocess added in v0.1.1

func (c *HttpStatus) Preprocess() error

type Log

type Log struct {
	Level string `yaml:"level"`
	Mode  string `yaml:"mode"`
}

func (*Log) Preprocess added in v0.1.1

func (c *Log) Preprocess() error

type Server

type Server struct {
	ListenAddress string `yaml:"listen_address"`
}

func (*Server) Preprocess added in v0.1.1

func (c *Server) Preprocess() error

Jump to

Keyboard shortcuts

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