2019-11-19 14:01:12 +08:00
|
|
|
|
2019-09-18 15:44:45 +08:00
|
|
|
from typing import Awaitable, Callable, Mapping, Type
|
|
|
|
|
|
|
|
from libp2p.security.secure_transport_interface import ISecureTransport
|
|
|
|
from libp2p.stream_muxer.abc import IMuxedConn
|
|
|
|
from libp2p.typing import TProtocol
|
2019-11-19 14:01:12 +08:00
|
|
|
from libp2p.io.abc import ReadWriteCloser
|
2019-08-02 16:32:33 +08:00
|
|
|
|
2019-11-19 14:01:12 +08:00
|
|
|
THandler = Callable[[ReadWriteCloser], Awaitable[None]]
|
2019-09-18 15:44:45 +08:00
|
|
|
TSecurityOptions = Mapping[TProtocol, ISecureTransport]
|
|
|
|
TMuxerClass = Type[IMuxedConn]
|
|
|
|
TMuxerOptions = Mapping[TProtocol, TMuxerClass]
|