config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTopologyConfig

func GetTopologyConfig() *topology.TopologyConfig

func LoadTopologyConfig

func LoadTopologyConfig() (*topology.TopologyConfig, error)

func WithContext added in v0.5.0

func WithContext(ctx context.Context, cfg *Config) context.Context

Types

type Config

type Config struct {
	BindAddr        string `yaml:"bindAddr" split_words:"true"`
	CardanoConfig   string `yaml:"cardanoConfig" envconfig:"config"`
	DatabasePath    string `yaml:"databasePath" split_words:"true"`
	SocketPath      string `yaml:"socketPath" split_words:"true"`
	Network         string `yaml:"network"`
	TlsCertFilePath string `yaml:"tlsCertFilePath" envconfig:"TLS_CERT_FILE_PATH"`
	TlsKeyFilePath  string `yaml:"tlsKeyFilePath" envconfig:"TLS_KEY_FILE_PATH"`
	Topology        string `yaml:"topology"`
	MetricsPort     uint   `yaml:"metricsPort" split_words:"true"`
	PrivateBindAddr string `yaml:"privateBindAddr" split_words:"true"`
	PrivatePort     uint   `yaml:"privatePort" split_words:"true"`
	RelayPort       uint   `yaml:"relayPort" envconfig:"port"`
	UtxorpcPort     uint   `yaml:"utxorpcPort" split_words:"true"`
	IntersectTip    bool   `yaml:"intersectTip" split_words:"true"`
}

func FromContext added in v0.5.0

func FromContext(ctx context.Context) *Config

func GetConfig

func GetConfig() *Config

func LoadConfig

func LoadConfig(configFile string) (*Config, error)

Jump to

Keyboard shortcuts

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