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);
|
2024-08-13 11:48:54 +00:00
|
|
|
|
void OnNodeStarted(string peerId, string nodeId);
|
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
|
|
|
|
}
|
|
|
|
|
}
|