MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / broadcastToAllTabs

Method broadcastToAllTabs

internal/tui/app.go:498–528  ·  view source on GitHub ↗
(msg tea.Msg)

Source from the content-addressed store, hash-verified

496}
497
498func (a App) broadcastToAllTabs(msg tea.Msg) (tea.Model, tea.Cmd) {
499 var cmds []tea.Cmd
500 var cmd tea.Cmd
501
502 a.dashboard, cmd = a.dashboard.Update(msg)
503 if cmd != nil {
504 cmds = append(cmds, cmd)
505 }
506 a.config, cmd = a.config.Update(msg)
507 if cmd != nil {
508 cmds = append(cmds, cmd)
509 }
510 a.auth, cmd = a.auth.Update(msg)
511 if cmd != nil {
512 cmds = append(cmds, cmd)
513 }
514 a.keys, cmd = a.keys.Update(msg)
515 if cmd != nil {
516 cmds = append(cmds, cmd)
517 }
518 a.oauth, cmd = a.oauth.Update(msg)
519 if cmd != nil {
520 cmds = append(cmds, cmd)
521 }
522 a.logs, cmd = a.logs.Update(msg)
523 if cmd != nil {
524 cmds = append(cmds, cmd)
525 }
526
527 return a, tea.Batch(cmds...)
528}

Callers 1

UpdateMethod · 0.95

Calls 1

UpdateMethod · 0.45

Tested by

no test coverage detected