autopush.main

autopush/autoendpoint daemon scripts

Daemon Script Entry Points

class autopush.main.ConnectionApplication(conf, resource=None)[source]

The autopush application

static parse_args(config_files, args)

Parse out connection node arguments for an autopush node

websocket_factory

alias of autopush.websocket.PushServerFactory

websocket_site_factory

alias of autopush.websocket.ConnectionWSSite

setup(rotate_tables=True)[source]

Initialize the services

add_internal_router()[source]

Start the internal HTTP notification router

add_websocket()[source]

Start the public WebSocket server

class autopush.main.EndpointApplication(conf, resource=None)[source]

The autoendpoint application

static parse_args(config_files, args)

Parses out endpoint arguments for an autoendpoint node

setup(rotate_tables=True)[source]

Initialize the services

add_endpoint()[source]

Start the Endpoint HTTP router

Common Root

class autopush.main.AutopushMultiService(conf, resource=None)[source]
static parse_args(config_files, args)[source]

Parse command line args via argparse

setup(rotate_tables=True)[source]

Initialize the services

add_maybe_ssl(port, factory, ssl_cf)[source]

Add a Service from factory, optionally behind TLS

add_timer(*args, **kwargs)[source]

Add a TimerService

add_memusage()[source]

Add the memusage Service

run()[source]

Start the services and run the reactor

classmethod _from_argparse(ns, resource=None, **kwargs)[source]

Create an instance from argparse/additional kwargs

classmethod main(args=None, use_files=True, resource=None)[source]

Entry point to autopush’s main command line scripts.

aka autopush/autoendpoint.