Documentation ¶
Index ¶
- Variables
- func Init(opts ...Option)
- func RegisterProtocol(name string)
- type Option
- func SetShutdown_Config(cfg *global.ShutdownConfig) Option
- func WithConsumerUpdateWaitTime(duration time.Duration) Option
- func WithOfflineRequestWindowTimeout(timeout time.Duration) Option
- func WithRejectRequest() Option
- func WithStepTimeout(timeout time.Duration) Option
- func WithTimeout(timeout time.Duration) Option
- func WithoutInternalSignal() Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ShutdownSignals receives shutdown signals to process ShutdownSignals = []os.Signal{ os.Interrupt, os.Kill, syscall.SIGKILL, syscall.SIGSTOP, syscall.SIGHUP, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGILL, syscall.SIGTRAP, syscall.SIGABRT, syscall.SIGSYS, syscall.SIGTERM, } // DumpHeapShutdownSignals receives shutdown signals to process DumpHeapShutdownSignals = []os.Signal{ syscall.SIGQUIT, syscall.SIGILL, syscall.SIGTRAP, syscall.SIGABRT, syscall.SIGSYS, } )
Functions ¶
func RegisterProtocol ¶
func RegisterProtocol(name string)
RegisterProtocol registers protocol which would be destroyed before shutdown. Please make sure that Init function has been invoked before, otherwise this function would not make any sense.
Types ¶
type Option ¶
type Option func(*Options)
func SetShutdown_Config ¶
func SetShutdown_Config(cfg *global.ShutdownConfig) Option
func WithRejectRequest ¶
func WithRejectRequest() Option
func WithStepTimeout ¶
func WithTimeout ¶
func WithoutInternalSignal ¶
func WithoutInternalSignal() Option
Click to show internal directories.
Click to hide internal directories.