Skip to main content

Setup

Setup registers the control plane AppService handler on the SetupContext mux. In unified mode (sc.BaseURL set), the proxy routes to InternalAppService on the same mux via the /internal prefix — no network hop. In split mode, cfg.InternalAppServiceURL points at the data plane host.

def Setup(
ctx: context.Context,
sc: *stdlibapp.SetupContext
) - > error

Registers the control plane AppService handler on the SetupContext mux. In unified mode (sc.BaseURL set), the proxy routes to InternalAppService on the same mux via the /internal prefix — no network hop. In split mode, cfg.InternalAppServiceURL points at the data plane host.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, used for cancellation and tracing.
sc*stdlibapp.SetupContextThe setup context which provides the mux to register handlers and the base URL for unified mode.

Returns

TypeDescription
errorAn error if the setup fails, otherwise nil.