config

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "config"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Account                  commonaccount.Config   `yaml:"account"`
	Drpc                     rpc.Config             `yaml:"drpc"`
	Metric                   metric.Config          `yaml:"metric"`
	Network                  nodeconf.Configuration `yaml:"network"`
	NetworkStorePath         string                 `yaml:"networkStorePath"`
	NetworkUpdateIntervalSec int                    `yaml:"networkUpdateIntervalSec"`
	Mongo                    db.Mongo               `yaml:"mongo"`
	SpaceStatus              spacestatus.Config     `yaml:"spaceStatus"`
	Yamux                    yamux.Config           `yaml:"yamux"`
	CafeApi                  cafeapi.Config         `yaml:"cafeApi"`
}

func NewFromFile

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

func (Config) GetAccount

func (c Config) GetAccount() commonaccount.Config

func (Config) GetCafeApi added in v0.2.4

func (c Config) GetCafeApi() cafeapi.Config

func (Config) GetDrpc added in v0.2.0

func (c Config) GetDrpc() rpc.Config

func (Config) GetMetric

func (c Config) GetMetric() metric.Config

func (Config) GetMongo

func (c Config) GetMongo() db.Mongo

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) GetSpaceStatus

func (c Config) GetSpaceStatus() spacestatus.Config

func (Config) GetYamux added in v0.2.0

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