Module rabbit.exchange

View Source
import attr

@attr.s(slots=True, frozen=True)

class Exchange:

    name = attr.ib(

        type=str,

        validator=attr.validators.instance_of(str)

    )

    exchange_type = attr.ib(

        type=str,

        validator=attr.validators.instance_of(str)

    )

    topic = attr.ib(

        type=str,

        default='',

        validator=attr.validators.instance_of(str)

    )

    durable = attr.ib(

        type=bool,

        default=True,

        validator=attr.validators.instance_of(bool)

    )

Classes

Exchange

class Exchange(
    name: str,
    exchange_type: str,
    topic: str = '',
    durable: bool = True
)
View Source
class Exchange:

    name = attr.ib(

        type=str,

        validator=attr.validators.instance_of(str)

    )

    exchange_type = attr.ib(

        type=str,

        validator=attr.validators.instance_of(str)

    )

    topic = attr.ib(

        type=str,

        default='',

        validator=attr.validators.instance_of(str)

    )

    durable = attr.ib(

        type=bool,

        default=True,

        validator=attr.validators.instance_of(bool)

    )

Class variables

durable
exchange_type
name
topic

Instance variables

durable
exchange_type
name
topic