Table of Contents

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 ChannelId

Channel ID

config ChannelConfig

Channel configuration

DeleteAsync(ChannelId)

Deletes a channel configuration

Task DeleteAsync(ChannelId channelId)

Parameters

channelId ChannelId

Channel ID

Returns

Task

GetByChannelIdAsync(ChannelId)

Gets a channel configuration by channel ID

Task<ChannelConfig?> GetByChannelIdAsync(ChannelId channelId)

Parameters

channelId ChannelId

Channel 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 ChannelId

Channel ID

config ChannelConfig

Updated channel configuration