def __init__(self, rpc_event, state): self._rpc_event = rpc_event self._state = state self._peer = _common.decode(self._rpc_event.operation_call.peer()) self._peer_identities = cygrpc.peer_identities( self._rpc_event.operation_call) self._peer_identity_key = cygrpc.peer_identity_key( self._rpc_event.operation_call) self._auth_context = { _common.decode(key): value for key, value in six.iteritems( cygrpc.auth_context(self._rpc_event.operation_call)) }
def peer_identity_key(self): id_key = cygrpc.peer_identity_key(self._rpc_event.call) return id_key if id_key is None else _common.decode(id_key)
def peer_identity_key(self): id_key = cygrpc.peer_identity_key(self._rpc_event.operation_call) return id_key if id_key is None else _common.decode(id_key)