object CLightningConfig extends ConfigFactory[CLightningConfig] with BitcoinSLogger with Serializable
- Alphabetic
- By Inheritance
- CLightningConfig
- Serializable
- BitcoinSLogger
- ConfigFactory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val DEFAULT_CONF_FILE: File
Default location of lightning conf file
Default location of lightning conf file
- Definition Classes
- CLightningConfig → ConfigFactory
- val DEFAULT_DATADIR: File
- Definition Classes
- CLightningConfig → ConfigFactory
- val DEFAULT_RPC_FILE: File
Default location of lightning rpc file
- def apply(config: File, datadir: File = DEFAULT_DATADIR): CLightningConfig
Reads the given file and construct a
lightning
config from itReads the given file and construct a
lightning
config from it- Definition Classes
- CLightningConfig → ConfigFactory
- def apply(config: Path): CLightningConfig
Reads the given path and construct a
lightning
config from itReads the given path and construct a
lightning
config from it- Definition Classes
- CLightningConfig → ConfigFactory
- def apply(config: String, datadir: File): CLightningConfig
Constructs a
lightning
config from the given string, by splitting it on newlinesConstructs a
lightning
config from the given string, by splitting it on newlines- Definition Classes
- CLightningConfig → ConfigFactory
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- lazy val empty: CLightningConfig
The empty
lightning
configThe empty
lightning
config- Definition Classes
- CLightningConfig → ConfigFactory
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromConfigFile(file: File): CLightningConfig
- Definition Classes
- CLightningConfig → ConfigFactory
- def fromDataDir(dir: File): CLightningConfig
- Definition Classes
- CLightningConfig → ConfigFactory
- def fromDefaultDatadir: CLightningConfig
If there is a
config
in the default data directory, this is read.If there is a
config
in the default data directory, this is read. Otherwise, the default configuration is returned.- Definition Classes
- CLightningConfig → ConfigFactory
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logger: Logger
- Definition Classes
- BitcoinSLogger
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def networkToConfigString(network: BitcoinNetwork): String
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def stringToNetwork(string: String): BitcoinNetwork
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def writeConfigToFile(config: CLightningConfig, datadir: File): Path
Writes the config to the data directory within it, if it doesn't exist.
Writes the config to the data directory within it, if it doesn't exist. Returns the written file.
- Definition Classes
- CLightningConfig → ConfigFactory