Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerClose ¶
type ServerClose interface { // Wrap given Context, cancel it on server termination. WithCancel(ctxToWrap context.Context, action func(ctx context.Context)) // Terminate handlers. Close() }
ServerClose provides way to terminate handler when server shutdown.
func NewServerClose ¶
func NewServerClose() ServerClose
NewServerClose creates ServerClose instance.
Click to show internal directories.
Click to hide internal directories.