Skip to content

Commit 93b769d

Browse files
committed
documentation update
1 parent 7ed1ff7 commit 93b769d

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed

docs/api.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,25 @@ Handler
2020

2121
.. automodule:: rsocket.request_handler
2222
:members:
23+
24+
25+
Interfaces
26+
----------
27+
28+
Publisher
29+
~~~~~~~~~
30+
31+
.. automodule:: reactivestreams.publisher
32+
:members:
33+
34+
Subscriber
35+
~~~~~~~~~~
36+
37+
.. automodule:: reactivestreams.subscriber
38+
:members:
39+
40+
Subscription
41+
~~~~~~~~~~~~
42+
43+
.. automodule:: reactivestreams.subscription
44+
:members:

reactivestreams/publisher.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55

66
class Publisher(metaclass=abc.ABCMeta):
7+
"""
8+
Handles event for subscription to a subscriber
9+
"""
10+
711
@abc.abstractmethod
812
def subscribe(self, subscriber: Subscriber):
913
...

reactivestreams/subscriber.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66

77
class Subscriber(metaclass=ABCMeta):
8+
"""
9+
Handles stream events.
10+
"""
11+
812
@abstractmethod
913
def on_subscribe(self, subscription: Subscription):
1014
...

reactivestreams/subscription.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33

44
class Subscription(metaclass=ABCMeta):
5+
"""
6+
Backpressure stream control.
7+
"""
8+
59
@abstractmethod
610
def request(self, n: int):
711
...

rsocket/rsocket_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919

2020
class RSocketClient(RSocketBase):
21+
"""
22+
Server side instance of an rsocket connection.
23+
"""
2124

2225
def __init__(self,
2326
transport_provider: AsyncGenerator[Transport, Any],

rsocket/rsocket_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class RSocketServer(RSocketBase):
1515
"""
1616
Server side instance of an rsocket connection.
1717
"""
18+
1819
def __init__(self,
1920
transport: Transport,
2021
handler_factory: Callable[[], RequestHandler] = BaseRequestHandler,

0 commit comments

Comments
 (0)