case class CLightningConfig(lines: Seq[String], datadir: File) extends BitcoinSLogger with Product with Serializable
This class represents a parsed lightning.conf
file. It respects the
different ways of writing options in lightning.conf
: Raw options,
network-prefixed options and options within network sections. It also tries
to conform to the way clightning gives precedence to the different
properties.
Not all options are exposed from this class. We only expose those that are of relevance when making RPC requests.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CLightningConfig
- Serializable
- Product
- Equals
- BitcoinSLogger
- AnyRef
- Any
- Hide All
- Show All
Visibility
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val bitcoindBinding: URI
- lazy val bitcoindPass: String
- lazy val bitcoindUser: String
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val datadir: File
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- lazy val instance: CLightningInstanceLocal
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val listenBinding: URI
- lazy val logFileOpt: Option[File]
- def logger: Logger
- Definition Classes
- BitcoinSLogger
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- lazy val network: BitcoinNetwork
The blockchain network associated with this
lightning
config - final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- lazy val rpcFile: File
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- lazy val toWriteableString: String
Converts the config back to a string that can be written to file, and passed to
lightning
- 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 withDatadir(newDatadir: File): CLightningConfig
- def withOption(key: String, value: String): CLightningConfig
Creates a new config with the given keys and values appended