Constructor that returns the Controller interface
(tabId string, blockId string, controllerType string, connName string)
| 69 | |
| 70 | // Constructor that returns the Controller interface |
| 71 | func MakeShellController(tabId string, blockId string, controllerType string, connName string) Controller { |
| 72 | return &ShellController{ |
| 73 | Lock: &sync.Mutex{}, |
| 74 | ControllerType: controllerType, |
| 75 | TabId: tabId, |
| 76 | BlockId: blockId, |
| 77 | ConnName: connName, |
| 78 | ProcStatus: Status_Init, |
| 79 | RunLock: &atomic.Bool{}, |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | // Implement Controller interface methods |
| 84 |