zaqar/marconi/transport/base.py
Kurt Griffiths 42e40d531c doc(transport.driver_base): Add docstrings
Also, renamed driver_base to base.py to be consistent with storage.

Change-Id: Iff59699a7c43341c2069823a8f39373c2d6b4760
Implements: blueprint transport-base
2013-03-11 16:30:40 -04:00

31 lines
912 B
Python

# Copyright (c) 2013 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import abc
class DriverBase:
"""Base class for Transport Drivers to document the expected interface."""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def listen():
"""
Called to start listening for client requests when Marconi is
ran in self-hosting mode.
"""
pass