config

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 12 Imported by: 10

Documentation

Index

Constants

View Source
const CName = "config"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Drpc                     rpc.Config             `yaml:"drpc"`
	Account                  commonaccount.Config   `yaml:"account"`
	Network                  nodeconf.Configuration `yaml:"network"`
	NetworkStorePath         string                 `yaml:"networkStorePath"`
	NetworkUpdateIntervalSec int                    `yaml:"networkUpdateIntervalSec"`
	Mongo                    db.Config              `yaml:"mongo"`
	Metric                   metric.Config          `yaml:"metric"`
	Log                      logger.Config          `yaml:"log"`
	Yamux                    yamux.Config           `yaml:"yamux"`
	Quic                     quic.Config            `yaml:"quic"`
	Deletion                 deletelog.Config       `yaml:"deletion"`
}

func NewFromFile

func NewFromFile(path string) (c *Config, err error)

func (Config) GetAccount

func (c Config) GetAccount() commonaccount.Config

func (Config) GetDB added in v0.4.2

func (c Config) GetDB() db.Config

func (Config) GetDeletion added in v0.4.2

func (c Config) GetDeletion() deletelog.Config

func (Config) GetDrpc

func (c Config) GetDrpc() rpc.Config

func (Config) GetMetric

func (c Config) GetMetric() metric.Config

func (Config) GetMongo

func (c Config) GetMongo() db.Config

func (Config) GetNodeConf

func (c Config) GetNodeConf() nodeconf.Configuration

func (Config) GetNodeConfStorePath

func (c Config) GetNodeConfStorePath() string

func (Config) GetNodeConfUpdateInterval

func (c Config) GetNodeConfUpdateInterval() int

func (Config) GetQuic added in v0.1.1

func (c Config) GetQuic() quic.Config

func (Config) GetYamux

func (c Config) GetYamux() yamux.Config

func (*Config) Init

func (c *Config) Init(a *app.App) (err error)

func (Config) Name

func (c Config) Name() (name string)

Jump to

Keyboard shortcuts

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