Start starts 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)
| 89 | // Start starts the specified version of the specified module. |
| 90 | // If either module or version are the empty string, it means the default. |
| 91 | func Start(c context.Context, module, version string) error { |
| 92 | req := &pb.StartModuleRequest{} |
| 93 | if module != "" { |
| 94 | req.Module = &module |
| 95 | } |
| 96 | if version != "" { |
| 97 | req.Version = &version |
| 98 | } |
| 99 | res := &pb.StartModuleResponse{} |
| 100 | return internal.Call(c, "modules", "StartModule", req, res) |
| 101 | } |
| 102 | |
| 103 | // Stop stops the specified version of the specified module. |
| 104 | // If either module or version are the empty string, it means the default. |