func FromEndpoint(e *e3x.Endpoint) Bridge { mod := e.Module(moduleKey) if mod == nil { return nil } return mod.(*module) }
func FromEndpoint(e *e3x.Endpoint, key string) DHT { mod := e.Module(moduleKey(key)) if mod == nil { return nil } return mod.(*dht) }