mirror of
https://github.com/singchia/frontier.git
synced 2025-11-03 00:34:01 +08:00
25 lines
387 B
Go
25 lines
387 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
_ "net/http/pprof"
|
|
|
|
"github.com/jumboframes/armorigo/sigaction"
|
|
"github.com/singchia/frontier/pkg/frontlas"
|
|
"k8s.io/klog/v2"
|
|
)
|
|
|
|
func main() {
|
|
frontlas, err := frontlas.NewFrontlas()
|
|
if err != nil {
|
|
klog.Errorf("new frontlas err: %s", err)
|
|
return
|
|
}
|
|
frontlas.Run()
|
|
|
|
sig := sigaction.NewSignal()
|
|
sig.Wait(context.TODO())
|
|
|
|
frontlas.Close()
|
|
}
|