mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-23 12:10:48 +08:00
22 lines
208 B
Go
22 lines
208 B
Go
package main
|
|
|
|
import "C"
|
|
import (
|
|
"os"
|
|
"polaris/cmd"
|
|
"polaris/log"
|
|
)
|
|
|
|
func main() {}
|
|
|
|
//export Start
|
|
func Start() {
|
|
cmd.Start(true)
|
|
}
|
|
|
|
//export Stop
|
|
func Stop() {
|
|
log.Infof("stop polaris")
|
|
os.Exit(0)
|
|
}
|