/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/libkb/client_status.go
18 строк
536 B
Joshua Blum
refactor to status pkg (#17464)
10 май 2019, 16:08
Не верифицирован
10 май 2019, 16:08
0d29fd1
Код
Авторство
О чём код?
// Copyright 2019 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package libkb import ( keybase1 "github.com/keybase/client/go/protocol/keybase1" ) func GetClientStatus(mctx MetaContext) (res []keybase1.ClientStatus) { if mctx.G().ConnectionManager != nil { res = mctx.G().ConnectionManager.ListAllLabeledConnections() for i, client := range res { res[i].NotificationChannels = mctx.G().NotifyRouter.GetChannels(ConnectionID(client.ConnectionID)) } } return res }