Table of Contents

Interface IChannelDbRepository

Namespace
NLightning.Domain.Channels.Interfaces
Assembly
NLightning.Domain.dll
public interface IChannelDbRepository

Methods

AddAsync(ChannelModel)

Task AddAsync(ChannelModel channelModel)

Parameters

channelModel ChannelModel

Returns

Task

GetAllAsync()

Task<IEnumerable<ChannelModel>> GetAllAsync()

Returns

Task<IEnumerable<ChannelModel>>

GetByIdAsync(ChannelId)

Task<ChannelModel?> GetByIdAsync(ChannelId channelId)

Parameters

channelId ChannelId

Returns

Task<ChannelModel>

GetByPeerIdAsync(CompactPubKey)

Task<IEnumerable<ChannelModel?>> GetByPeerIdAsync(CompactPubKey peerNodeId)

Parameters

peerNodeId CompactPubKey

Returns

Task<IEnumerable<ChannelModel>>

GetReadyChannelsAsync()

Task<IEnumerable<ChannelModel>> GetReadyChannelsAsync()

Returns

Task<IEnumerable<ChannelModel>>

UpdateAsync(ChannelModel)

Task UpdateAsync(ChannelModel channelModel)

Parameters

channelModel ChannelModel

Returns

Task