2018-10-27 08:49:39 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using BTCPayServer.Lightning;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Configuration.External
|
|
|
|
|
{
|
|
|
|
|
public abstract class ExternalLnd : ExternalService
|
|
|
|
|
{
|
2018-12-12 18:19:13 +09:00
|
|
|
|
public ExternalLnd(LightningConnectionString connectionString, string type)
|
2018-10-27 08:49:39 -05:00
|
|
|
|
{
|
|
|
|
|
ConnectionString = connectionString;
|
|
|
|
|
Type = type;
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-12 18:19:13 +09:00
|
|
|
|
public string Type { get; set; }
|
2018-10-27 08:49:39 -05:00
|
|
|
|
public LightningConnectionString ConnectionString { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ExternalLndGrpc : ExternalLnd
|
|
|
|
|
{
|
2018-12-12 18:19:13 +09:00
|
|
|
|
public ExternalLndGrpc(LightningConnectionString connectionString) : base(connectionString, "lnd-grpc") { }
|
2018-10-27 08:49:39 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ExternalLndRest : ExternalLnd
|
|
|
|
|
{
|
2018-12-12 18:19:13 +09:00
|
|
|
|
public ExternalLndRest(LightningConnectionString connectionString) : base(connectionString, "lnd-rest") { }
|
2018-10-27 08:49:39 -05:00
|
|
|
|
}
|
|
|
|
|
}
|