func EAdd(c stypes.Client, cmd *types.Action) (interface{}, error) {
	key := cmd.StorageKey
	cidi := c.ClientId().Uint64()
	name := cmd.Id
	ekgLock.Lock()
	defer ekgLock.Unlock()

	if clientIdsM, ok := ekgKeyToClientIdsNames[key]; ok {
		clientIdsM[cidi] = name
	} else {
		ekgKeyToClientIdsNames[key] = map[uint64]string{cidi: name}
	}
	if keysM, ok := ekgClientIdToKeysNames[cidi]; ok {
		keysM[key] = name
	} else {
		ekgClientIdToKeysNames[cidi] = map[string]string{key: name}
	}
	return OK, nil
}
// EAdd adds the client to an ekg's set of things it's watching, and adds the
// ekg's information to the client's set of ekgs its hooked up to
EAdd adds the client to an ekg's set of things it's watching, and adds the
ekg's information to the client's set of ekgs its hooked up to
// EAdd adds the client to an ekg ' s set of things it ' s watching and adds the // ekg ' s information to the client ' s set of ekgs its hooked up to
func EAdd(c stypes.Client, cmd *types.Action) (interface{}, error) {
	key := cmd.StorageKey
	cidi := c.ClientId().Uint64()
	name := cmd.Id
	ekgLock.Lock()
	defer ekgLock.Unlock()
	if clientIdsM, ok := ekgKeyToClientIdsNames[key]; ok {
		clientIdsM[cidi] = name
	} else {
		ekgKeyToClientIdsNames[key] = map[uint64]string{cidi: name}
	}
	if keysM, ok := ekgClientIdToKeysNames[cidi]; ok {
		keysM[key] = name
	} else {
		ekgClientIdToKeysNames[cidi] = map[string]string{key: name}
	}
	return OK, nil
}
func EAdd ( c stypes . Client , cmd * types . Action ) ( interface { } , error ) { key := cmd . StorageKey cidi := c . ClientId ( ) . Uint64 ( ) name := cmd . Id ekgLock . Lock ( ) defer ekgLock . Unlock ( ) if clientIdsM , ok := ekgKeyToClientIdsNames [ key ] ; ok { clientIdsM [ cidi ] = name } else { ekgKeyToClientIdsNames [ key ] = map [ uint64 ] string { cidi : name } } if keysM , ok := ekgClientIdToKeysNames [ cidi ] ; ok { keysM [ key ] = name } else { ekgClientIdToKeysNames [ cidi ] = map [ string ] string { key : name } } return OK , nil }
EAdd adds the client to an ekg's set of things it's watching, and adds the
ekg's information to the client's set of ekgs its hooked up to
EAdd adds the client to an ekg ' s set of things it ' s watching and adds the ekg ' s information to the client ' s set of ekgs its hooked up to