feat: PCAP捕获

This commit is contained in:
TsMask
2023-09-16 14:51:56 +08:00
parent e98562783e
commit a1e0cf47b6
2 changed files with 111 additions and 0 deletions

View File

@@ -239,6 +239,13 @@ func init() {
Register("PUT", trace.CustomUriTraceTask, trace.PutTraceTaskToNF, nil)
Register("DELETE", trace.CustomUriTraceTask, trace.DeleteTraceTaskToNF, nil)
// 网元发送执行 pcap抓包
Register("POST", trace.UriTcpdumpTask, trace.TcpdumpNeTask, nil)
Register("POST", trace.CustomUriTcpdumpTask, trace.TcpdumpNeTask, nil)
// 网元发送执行 抓包下载pcap文件
Register("POST", trace.UriTcpdumpPcapDownload, trace.TcpdumpPcapDownload, nil)
Register("POST", trace.CustomUriTcpdumpPcapDownload, trace.TcpdumpPcapDownload, nil)
// file management
Register("POST", file.UriFile, file.UploadFile, nil)
Register("GET", file.UriFile, file.DownloadFile, nil)