2024-08-01 07:09:30 +00:00
|
|
|
|
using Utils;
|
|
|
|
|
|
|
|
|
|
namespace CodexPlugin.Hooks
|
2024-07-26 06:39:27 +00:00
|
|
|
|
{
|
|
|
|
|
public interface ICodexNodeHooks
|
|
|
|
|
{
|
2024-07-29 08:16:37 +00:00
|
|
|
|
void OnNodeStarting(DateTime startUtc, string image);
|
|
|
|
|
void OnNodeStarted(string peerId);
|
2024-07-26 06:39:27 +00:00
|
|
|
|
void OnNodeStopping();
|
2024-08-01 07:09:30 +00:00
|
|
|
|
void OnFileUploading(string uid, ByteSize size);
|
|
|
|
|
void OnFileUploaded(string uid, ByteSize size, ContentId cid);
|
|
|
|
|
void OnFileDownloading(ContentId cid);
|
|
|
|
|
void OnFileDownloaded(ByteSize size, ContentId cid);
|
2024-07-26 06:39:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|