config

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 8 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 {
	BadgerCacheSize int64  `split_words:"true" yaml:"badgerCacheSize"`
	MempoolCapacity int64  `split_words:"true" yaml:"mempoolCapacity"`
	BindAddr        string `split_words:"true" yaml:"bindAddr"`
	CardanoConfig   string `                   yaml:"cardanoConfig"   envconfig:"config"`
	DatabasePath    string `split_words:"true" yaml:"databasePath"`
	SocketPath      string `split_words:"true" yaml:"socketPath"`
	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   `split_words:"true" yaml:"metricsPort"`
	PrivateBindAddr string `split_words:"true" yaml:"privateBindAddr"`
	PrivatePort     uint   `split_words:"true" yaml:"privatePort"`
	RelayPort       uint   `                   yaml:"relayPort"       envconfig:"port"`
	UtxorpcPort     uint   `split_words:"true" yaml:"utxorpcPort"`
	IntersectTip    bool   `split_words:"true" yaml:"intersectTip"`
}

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