Interface IChannelMemoryRepository
- Namespace
- NLightning.Domain.Channels.Interfaces
- Assembly
- NLightning.Domain.dll
public interface IChannelMemoryRepository
Methods
AddChannel(ChannelModel)
void AddChannel(ChannelModel channel)
Parameters
channel ChannelModel
AddTemporaryChannel(CompactPubKey, ChannelModel)
void AddTemporaryChannel(CompactPubKey compactPubKey, ChannelModel channel)
Parameters
compactPubKey CompactPubKey
channel ChannelModel
FindChannels(Func<ChannelModel, bool>)
List<ChannelModel> FindChannels(Func<ChannelModel, bool> predicate)
Parameters
predicate Func<ChannelModel, bool>
Returns
- List<ChannelModel>
RemoveChannel(ChannelId)
void RemoveChannel(ChannelId channelId)
Parameters
channelId ChannelId
RemoveTemporaryChannel(CompactPubKey, ChannelId)
void RemoveTemporaryChannel(CompactPubKey compactPubKey, ChannelId channelId)
Parameters
compactPubKey CompactPubKey
channelId ChannelId
TryGetChannel(ChannelId, out ChannelModel)
bool TryGetChannel(ChannelId channelId, out ChannelModel channel)
Parameters
channelId ChannelId
channel ChannelModel
Returns
- bool
TryGetChannelState(ChannelId, out ChannelState)
bool TryGetChannelState(ChannelId channelId, out ChannelState channelState)
Parameters
channelId ChannelId
channelState ChannelState
Returns
- bool
TryGetTemporaryChannel(CompactPubKey, ChannelId, out ChannelModel)
bool TryGetTemporaryChannel(CompactPubKey compactPubKey, ChannelId channelId, out ChannelModel channel)
Parameters
compactPubKey CompactPubKey
channelId ChannelId
channel ChannelModel
Returns
- bool
TryGetTemporaryChannelState(CompactPubKey, ChannelId, out ChannelState)
bool TryGetTemporaryChannelState(CompactPubKey compactPubKey, ChannelId channelId, out ChannelState channelState)
Parameters
compactPubKey CompactPubKey
channelId ChannelId
channelState ChannelState
Returns
- bool
UpdateChannel(ChannelModel)
void UpdateChannel(ChannelModel channel)
Parameters
channel ChannelModel
UpdateTemporaryChannel(CompactPubKey, ChannelModel)
void UpdateTemporaryChannel(CompactPubKey compactPubKey, ChannelModel channel)
Parameters
compactPubKey CompactPubKey
channel ChannelModel