config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 8 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

	// TODO - Consider moving this URL to a more appropriate location
	SlackURL string

	SystemConfig  *subsystem.Config
	ServerConfig  *server.Config
	MetricsConfig *metrics.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

Jump to

Keyboard shortcuts

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