package
0.0.0-20240221030254-46f66de34eb6
Repository: https://github.com/jeffotoni/goexample.git
Documentation: pkg.go.dev
# Functions
This example demonstrates the use of shutdown service gracefully.
ExitWaitGroupAdd waitgroup counter adds delta.
ExitWaitGroupDone waitgroup down.
No description provided by the author
NewContext create new context.
No description provided by the author
Shutdown shutdown gracefully.
WaitAndShutdown shutdown gracefully.
WaitTerminationSignal 等待退出信号.
# Constants
ContextCancel cancel func value name in context.
ContextExitWaitGroup waitgroup object name in context.
# Variables
ErrCancelValueTypeError cancel value in context type error.
ErrExitWaitGroupValueTypeError exitWaitGroup value in context type error.
ErrNoCancel no cancel value error.
ErrNoExitWaitGroup no exitWaitGroup value in context.
ErrShutdownTimeout shutdown timeout.
No description provided by the author
TerminationSignals 退出信号量.