Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/kombu/transport/__pycache__/etcd.cpython-39.pyc
Ðазад
a o�h�! � @ s� d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m Z ddlmZ ddl mZ dd lmZmZ dd lmZ ddlmZ zddlZW n ey� dZY n0 ed �ZdZdZG dd� dej�ZG dd� dej�ZdS )a� Etcd Transport module for Kombu. It uses Etcd as a store to transport messages in Queues It uses python-etcd for talking to Etcd's HTTP API Features ======== * Type: Virtual * Supports Direct: *Unreviewed* * Supports Topic: *Unreviewed* * Supports Fanout: *Unreviewed* * Supports Priority: *Unreviewed* * Supports TTL: *Unreviewed* Connection String ================= Connection string has the following format: .. code-block:: 'etcd'://SERVER:PORT � )�annotationsN)�defaultdict)�contextmanager)�Empty)�ChannelError)� get_logger)�dumps�loads)�cached_property� )�virtualzkombu.transport.etcdiK � localhostc s� e Zd ZdZdZdZdZdZdZ� fdd�Z dd � Z ed d� �Zdd � Z dd� Zdd� Zdd� Zddd�Zdd� Zdd� Zedd� �Z� ZS )�Channelz+Etcd Channel class which talks to the Etcd.ZkombuN� � c sv t d u rtd��t� j|i |�� | jjjp2| jj}| jjjp@t }t �d||| j� t t�| _t j|t|�d�| _d S )N�Missing python-etcd libraryzHost: %s Port: %s Timeout: %s��host�port)�etcd�ImportError�super�__init__� connection�clientr �default_port�hostname�DEFAULT_HOST�logger�debug�timeoutr �dict�queues�Client�int)�self�args�kwargsr r �� __class__� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/kombu/transport/etcd.pyr >