config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 14 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 {
	Environment   core.Env
	BootStrapPath string
	L1RpcEndpoint string
	L2RpcEndpoint string

	SystemConfig  *subsystem.Config
	ServerConfig  *server.Config
	MetricsConfig *metrics.Config
	AlertConfig   *alert.Config
}

Config ... Application level configuration defined by `FilePath` value TODO - Consider renaming to "environment config"

func NewConfig

func NewConfig(fileName core.FilePath) *Config

NewConfig ... Initializer

func (*Config) IsBootstrap

func (cfg *Config) IsBootstrap() bool

IsBootstrap ... Returns true if a state bootstrap is required

func (*Config) IsDevelopment

func (cfg *Config) IsDevelopment() bool

IsDevelopment ... Returns true if the env is development

func (*Config) IsLocal

func (cfg *Config) IsLocal() bool

IsLocal ... Returns true if the env is local

func (*Config) IsProduction

func (cfg *Config) IsProduction() bool

IsProduction ... Returns true if the env is production

func (*Config) ParseAlertConfig added in v1.0.0

func (cfg *Config) ParseAlertConfig() error

ParseAlertConfig ... Parses the alert config

Jump to

Keyboard shortcuts

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