config

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Datadir    = "DATADIR"
	GRPCPort   = "GRPC_PORT"
	HTTPPort   = "HTTP_PORT"
	WithTLS    = "WITH_TLS"
	LogLevel   = "LOG_LEVEL"
	ArkServer  = "ARK_SERVER"
	EsploraURL = "ESPLORA_URL"

	// Only for testing purposes
	CLNDatadir = "CLN_DATADIR"
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Datadir    string
	GRPCPort   uint32
	HTTPPort   uint32
	WithTLS    bool
	LogLevel   uint32
	ArkServer  string
	EsploraURL string
	CLNDatadir string // for testing purposes only
}

func LoadConfig

func LoadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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