diff options
author | We-unite <3205135446@qq.com> | 2024-07-19 17:02:11 +0800 |
---|---|---|
committer | We-unite <3205135446@qq.com> | 2024-07-19 17:05:29 +0800 |
commit | 7cf8e470471d30fc821a8be350dcb97dc64e5add (patch) | |
tree | e747afbc698bba079047f17674eef260a4c6733d /src/global.go | |
parent | 2e37dcf708be08dff963ee08cb7a9557f32e690d (diff) | |
download | godo-7cf8e470471d30fc821a8be350dcb97dc64e5add.tar.gz godo-7cf8e470471d30fc821a8be350dcb97dc64e5add.zip |
Depart the whole program into several files.
Put all the src code in only one file is to ugly, so devide it!
and mv them into src dir to keep the whole repo clear.
Diffstat (limited to 'src/global.go')
-rw-r--r-- | src/global.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/global.go b/src/global.go new file mode 100644 index 0000000..4e08866 --- /dev/null +++ b/src/global.go | |||
@@ -0,0 +1,10 @@ | |||
1 | package main | ||
2 | |||
3 | import "sync" | ||
4 | |||
5 | var pids sync.Map // 古希腊掌管进程的神,int->*process | ||
6 | var wg sync.WaitGroup // 掌管协程 | ||
7 | var rawChan chan interface{} // 从接收到整理的管道 | ||
8 | var cookedChan chan Event // 整理好的信息的管道 | ||
9 | var syscallTable [500]string //记录一下系统调用 | ||
10 | var containerdPid int | ||