config

package
v0.0.0-...-3499ab5 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 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 Config

type Config struct {
	Network   string       `json:"network"`
	Eth1Rpc   string       `json:"eth1rpc"`
	Eth2Rpc   string       `json:"eth2rpc"`
	Store     StoreSetting `json:"store"`
	EtherScan EtherScan    `json:"etherscan"`
	Dev       bool         `json:"dev"`
}

func InitConfig

func InitConfig(path string) (*Config, error)

func (*Config) Validate

func (cfg *Config) Validate() error

type EtherScan

type EtherScan struct {
	Endpoint string `yaml:"endpoint"`
	ApiKey   string `yaml:"apikey"`
}

type StoreSetting

type StoreSetting struct {
	User    string `yaml:"user"`
	Pass    string `yaml:"pass"`
	Host    string `yaml:"host"`
	DB      string `yaml:"db"`
	LogMode string `yaml:"logmode"`
}

Jump to

Keyboard shortcuts

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