config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 14 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                  accountservice.Config  `yaml:"account"`
	Mongo                    db.Mongo               `yaml:"mongo"`
	Publish                  publish.Config         `yaml:"publish"`
	S3Store                  store.Config           `yaml:"s3Store"`
	Drpc                     rpc.Config             `yaml:"drpc"`
	Yamux                    yamux.Config           `yaml:"yamux"`
	Quic                     quic.Config            `yaml:"quic"`
	Network                  nodeconf.Configuration `yaml:"network"`
	Gateway                  gatewayconfig.Config   `yaml:"gateway"`
	NetworkStorePath         string                 `yaml:"networkStorePath"`
	NetworkUpdateIntervalSec int                    `yaml:"networkUpdateIntervalSec"`
	Metric                   metric.Config          `yaml:"metric"`
}

func NewFromFile

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

func (*Config) GetAccount added in v0.0.2

func (c *Config) GetAccount() accountservice.Config

func (*Config) GetDrpc added in v0.0.2

func (c *Config) GetDrpc() rpc.Config

func (*Config) GetGateway added in v0.0.2

func (c *Config) GetGateway() gatewayconfig.Config

func (*Config) GetMetric added in v0.1.0

func (c *Config) GetMetric() metric.Config

func (*Config) GetMongo

func (c *Config) GetMongo() db.Mongo

func (*Config) GetNodeConf added in v0.0.2

func (c *Config) GetNodeConf() nodeconf.Configuration

func (*Config) GetNodeConfStorePath added in v0.0.2

func (c *Config) GetNodeConfStorePath() string

func (*Config) GetNodeConfUpdateInterval added in v0.0.2

func (c *Config) GetNodeConfUpdateInterval() int

func (*Config) GetPublish

func (c *Config) GetPublish() publish.Config

func (*Config) GetQuic added in v0.0.2

func (c *Config) GetQuic() quic.Config

func (*Config) GetS3Store

func (c *Config) GetS3Store() store.Config

func (*Config) GetSecureService added in v0.0.2

func (c *Config) GetSecureService() secureservice.Config

func (*Config) GetYamux added in v0.0.2

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