Interface ILogSource

Assembly: redb.Tsak.Web.dll

Where a tail reads a node's log buffer from; through .

public interface ILogSource

Methods

AfterAsync(long, int, CancellationToken)

Up to limit entries after afterId, oldest first.

Task<LogsResponse> AfterAsync(long afterId, int limit, CancellationToken ct)

BeforeAsync(long, int, CancellationToken)

Up to limit entries before beforeId, newest first.

Task<LogsResponse> BeforeAsync(long beforeId, int limit, CancellationToken ct)

RecentAsync(int, CancellationToken)

The newest limit entries, newest first.

Task<LogsResponse> RecentAsync(int limit, CancellationToken ct)