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