config

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 11 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"

	// Unlocker configuration
	UnlockerType     = "UNLOCKER_TYPE"
	UnlockerFilePath = "UNLOCKER_FILE_PATH"
	UnlockerPassword = "UNLOCKER_PASSWORD"
)

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
	UnlockerType     string
	UnlockerFilePath string
	UnlockerPassword string
	// contains filtered or unexported fields
}

func LoadConfig

func LoadConfig() (*Config, error)

func (*Config) UnlockerService added in v0.1.8

func (c *Config) UnlockerService() ports.Unlocker

Jump to

Keyboard shortcuts

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