You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

channel.py 535B

5 years ago
12345678910111213141516
  1. # channel.py
  2. # ~~~~~~~~~
  3. # This module implements the Channel class.
  4. # :authors: Justin Karneges, Konstantin Bokarius.
  5. # :copyright: (c) 2015 by Fanout, Inc.
  6. # :license: MIT, see LICENSE for more details.
  7. # The Channel class is used to represent a channel in a GRIP proxy and
  8. # tracks the previous ID of the last message.
  9. class Channel(object):
  10. # Initialize with the channel name and an optional previous ID.
  11. def __init__(self, name, prev_id=None):
  12. self.name = name
  13. self.prev_id = prev_id
  14. self.filters = []