func EkgsForClient(c stypes.Client) ([]string, []string, error) {
	cidi := c.ClientId().Uint64()
	ekgLock.RLock()
	defer ekgLock.RUnlock()

	keysM, ok := ekgClientIdToKeysNames[cidi]
	if !ok {
		empty := []string{}
		return empty, empty, nil
	}

	ekgs := make([]string, 0, len(keysM))
	ids := make([]string, 0, len(keysM))
	for key, id := range keysM {
		ekgs = append(ekgs, key)
		ids = append(ids, id)
	}
	return ekgs, ids, nil
}
// EkgsForClient returns a list of all the ekgs a particular client is hooked up
// to, and all the ids the client is associated with for those ekgs
EkgsForClient returns a list of all the ekgs a particular client is hooked up
to, and all the ids the client is associated with for those ekgs
// EkgsForClient returns a list of all the ekgs a particular client is hooked up // to and all the ids the client is associated with for those ekgs
func EkgsForClient(c stypes.Client) ([]string, []string, error) {
	cidi := c.ClientId().Uint64()
	ekgLock.RLock()
	defer ekgLock.RUnlock()
	keysM, ok := ekgClientIdToKeysNames[cidi]
	if !ok {
		empty := []string{}
		return empty, empty, nil
	}
	ekgs := make([]string, 0, len(keysM))
	ids := make([]string, 0, len(keysM))
	for key, id := range keysM {
		ekgs = append(ekgs, key)
		ids = append(ids, id)
	}
	return ekgs, ids, nil
}
func EkgsForClient ( c stypes . Client ) ( [ ] string , [ ] string , error ) { cidi := c . ClientId ( ) . Uint64 ( ) ekgLock . RLock ( ) defer ekgLock . RUnlock ( ) keysM , ok := ekgClientIdToKeysNames [ cidi ] if ! ok { empty := [ ] string { } return empty , empty , nil } ekgs := make ( [ ] string , 0 , len ( keysM ) ) ids := make ( [ ] string , 0 , len ( keysM ) ) for key , id := range keysM { ekgs = append ( ekgs , key ) ids = append ( ids , id ) } return ekgs , ids , nil }
EkgsForClient returns a list of all the ekgs a particular client is hooked up
to, and all the ids the client is associated with for those ekgs
EkgsForClient returns a list of all the ekgs a particular client is hooked up to and all the ids the client is associated with for those ekgs