Stop stops the specified version of the specified module. If either module or version are the empty string, it means the default.
(c context.Context, module, version string)
| 102 | // Stop stops the specified version of the specified module. |
| 103 | // If either module or version are the empty string, it means the default. |
| 104 | func Stop(c context.Context, module, version string) error { |
| 105 | req := &pb.StopModuleRequest{} |
| 106 | if module != "" { |
| 107 | req.Module = &module |
| 108 | } |
| 109 | if version != "" { |
| 110 | req.Version = &version |
| 111 | } |
| 112 | res := &pb.StopModuleResponse{} |
| 113 | return internal.Call(c, "modules", "StopModule", req, res) |
| 114 | } |