()
| 57 | type FrontendProvider struct{} |
| 58 | |
| 59 | func (ui *UserInputHandler) registerChannel() (string, chan *UserInputResponse) { |
| 60 | ui.Lock.Lock() |
| 61 | defer ui.Lock.Unlock() |
| 62 | |
| 63 | id := uuid.New().String() |
| 64 | uich := make(chan *UserInputResponse, 1) |
| 65 | |
| 66 | ui.Channels[id] = uich |
| 67 | return id, uich |
| 68 | } |
| 69 | |
| 70 | func (ui *UserInputHandler) unregisterChannel(id string) { |
| 71 | ui.Lock.Lock() |