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 containing the mux where the AppService handler will be registered and potentially the base URL for unified mode.

Returns

TypeDescription
errorAn error if the setup fails, otherwise nil.