-
Notifications
You must be signed in to change notification settings - Fork 1
/
fbftp.go
48 lines (41 loc) · 955 Bytes
/
fbftp.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
author: foolbread
file: fbftp/fbftp.go
date: 2017/8/4
*/
package main
import (
"github.com/foolbread/fbftp/config"
"github.com/foolbread/fbftp/log"
"github.com/foolbread/fbftp/server"
"github.com/foolbread/fbftp/con"
"github.com/foolbread/fbftp/util"
"github.com/foolbread/fbftp/session"
"github.com/foolbread/fbftp/protocol"
"github.com/foolbread/fbftp/statistics"
"github.com/foolbread/fbftp/acl"
"github.com/foolbread/fbftp/storage"
"github.com/foolbread/fbftp/user"
"flag"
"runtime"
)
func init(){
flag.StringVar(&config_file,"f","conf.ini","config file path!")
flag.Parse()
config.InitConfig(config_file)
log.InitLog(config.GetConfig().GetLogFile())
statistics.InitStatistics()
protocol.InitProtocol()
session.InitSession()
util.InitUtil()
user.InitUser()
acl.InitAcl()
con.InitCon()
storage.InitStorage()
server.InitServer()
}
var config_file string
func main(){
runtime.GOMAXPROCS(runtime.NumCPU())
select {}
}