6 "github.com/hashicorp/go-plugin/internal/plugin"
9 // GRPCControllerServer handles shutdown calls to terminate the server when the
10 // plugin client is closed.
11 type grpcControllerServer struct {
15 // Shutdown stops the grpc server. It first will attempt a graceful stop, then a
16 // full stop on the server.
17 func (s *grpcControllerServer) Shutdown(ctx context.Context, _ *plugin.Empty) (*plugin.Empty, error) {
18 resp := &plugin.Empty{}
20 // TODO: figure out why GracefullStop doesn't work.