def __init__(self, context: Context) -> None: self.name = context.url.get_param("name") self.url = context.url self.context = context self.registry = context.get_registry() self.handler: Optional[DogeRPCServer] = None self.limit = context.url.get_param("limitConn", "default")
def __init__(self, context: Context, service: str) -> None: self.service = service self.url = context.url self.context = context self.registry = context.get_registry() self.endpoints = context.get_endpoints(self.registry, service) self.ha = context.get_ha() self.lb = context.get_lb(list(self.endpoints.values())) self.filter = context.get_filter(self) self.available = True self.closed = False self.watch()