config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 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   = "NO_TLS"
	LogLevel  = "LOG_LEVEL"
	ArkServer = "ARK_SERVER"

	// 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
	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