-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathentry.go
More file actions
30 lines (25 loc) · 753 Bytes
/
entry.go
File metadata and controls
30 lines (25 loc) · 753 Bytes
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
package main
import (
"github.com/7sDream/rikka/common/logger"
"github.com/7sDream/rikka/common/util"
"github.com/7sDream/rikka/plugins"
"github.com/7sDream/rikka/server"
)
// Logger of this package
var (
l = logger.NewLogger("[Entry]")
)
// Main entry point
func main() {
// print launch args
l.Info("Start rikka with arg:")
l.Info("\t bind to socket", socket)
l.Info("\t password", util.MaskString(*argPassword, 3))
l.Info("\t max file size", *argMaxSizeByMB, "MB")
l.Info("\t plugin", *argPluginStr)
l.Info("\t log level", *argLogLevel)
l.Info("Load plugin...")
plugins.Load(thePlugin)
// start Rikka servers (this call is Sync)
server.StartRikka(socket, *argPassword, *argMaxSizeByMB, *argHTTPS, *argCertDir, *argAllowOrigin)
}