Table of Contents

Interface IPeerDbRepository

Namespace
NLightning.Domain.Node.Interfaces
Assembly
NLightning.Domain.dll
public interface IPeerDbRepository

Methods

AddOrUpdateAsync(PeerModel)

Task AddOrUpdateAsync(PeerModel peerModel)

Parameters

peerModel PeerModel

Returns

Task

GetAllAsync()

Task<IEnumerable<PeerModel>> GetAllAsync()

Returns

Task<IEnumerable<PeerModel>>

GetByNodeIdAsync(CompactPubKey)

Task<PeerModel?> GetByNodeIdAsync(CompactPubKey nodeId)

Parameters

nodeId CompactPubKey

Returns

Task<PeerModel>

Update(PeerModel)

void Update(PeerModel peerModel)

Parameters

peerModel PeerModel

UpdatePeerLastSeenAsync(CompactPubKey)

Task UpdatePeerLastSeenAsync(CompactPubKey peerCompactPubKey)

Parameters

peerCompactPubKey CompactPubKey

Returns

Task