github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/libkb/client_status.go (about) 1 // Copyright 2019 Keybase, Inc. All rights reserved. Use of 2 // this source code is governed by the included BSD license. 3 4 package libkb 5 6 import ( 7 keybase1 "github.com/keybase/client/go/protocol/keybase1" 8 ) 9 10 func GetClientStatus(mctx MetaContext) (res []keybase1.ClientStatus) { 11 if mctx.G().ConnectionManager != nil { 12 res = mctx.G().ConnectionManager.ListAllLabeledConnections() 13 for i, client := range res { 14 res[i].NotificationChannels = mctx.G().NotifyRouter.GetChannels(ConnectionID(client.ConnectionID)) 15 } 16 } 17 return res 18 }