Interface IChannelConfigDbRepository
- Namespace
- NLightning.Domain.Channels.Interfaces
- Assembly
- NLightning.Domain.dll
Repository interface for managing channel configurations
public interface IChannelConfigDbRepository
Methods
Add(ChannelId, ChannelConfig)
Adds a new channel configuration
void Add(ChannelId channelId, ChannelConfig config)
Parameters
channelId
ChannelIdChannel ID
config
ChannelConfigChannel configuration
DeleteAsync(ChannelId)
Deletes a channel configuration
Task DeleteAsync(ChannelId channelId)
Parameters
channelId
ChannelIdChannel ID
Returns
GetByChannelIdAsync(ChannelId)
Gets a channel configuration by channel ID
Task<ChannelConfig?> GetByChannelIdAsync(ChannelId channelId)
Parameters
channelId
ChannelIdChannel ID
Returns
- Task<ChannelConfig?>
Channel configuration or null if not found
Update(ChannelId, ChannelConfig)
Updates an existing channel configuration
void Update(ChannelId channelId, ChannelConfig config)
Parameters
channelId
ChannelIdChannel ID
config
ChannelConfigUpdated channel configuration