docker / go-plugins-helpers

Go helper packages to extend the Docker Engine
https://docs.docker.com/engine/extend/plugins/
Apache License 2.0
333 stars 133 forks source link

Expose Shutdown method for graceful stopping #102

Open clinta opened 6 years ago

clinta commented 6 years ago

This PR exposes a shutdown method on the handler to allow programs to gracefully stop the underlying http server.

ivandeex commented 3 years ago

Unless you pass sdk.Handler by reference to the Serve/Shutdown methods, the http server will be lost. See correct patch: https://github.com/ivandeex/go-plugins-helpers/commit/50db162a014d40c94c22b9164e250aea28bb198a