Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TODO remove dependency on kubernetes see: https://github.com/apache/dubbo-kubernetes/issues/2798 Log = kube_log.Log NewLogger = dubbo_log.NewLogger NewLoggerTo = dubbo_log.NewLoggerTo NewLoggerWithRotation = dubbo_log.NewLoggerWithRotation SetLogger = kube_log.SetLogger Now = time.Now SetupSignalHandler = func() (context.Context, context.Context) { gracefulCtx, gracefulCancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background()) c := make(chan os.Signal, 3) signal.Notify(c, syscall.SIGINT, syscall.SIGTERM) go func() { logger := Log.WithName("runtime") s := <-c logger.Info("received signal, stopping instance gracefully", "signal", s.String()) gracefulCancel() s = <-c logger.Info("received second signal, stopping instance", "signal", s.String()) cancel() s = <-c logger.Info("received third signal, force exit", "signal", s.String()) os.Exit(1) }() return gracefulCtx, ctx } )
Functions ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
ca
|
|
config
|
|
dns
|
|
Package config is a generated GoMock package.
|
Package config is a generated GoMock package. |
managers
|
|
resources
|
|
apis/mesh
nolint:whitespace
|
nolint:whitespace |
apis/system
nolint:whitespace
|
nolint:whitespace |
Click to show internal directories.
Click to hide internal directories.