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
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the operation, used for cancellation and tracing. |
| sc | *stdlibapp.SetupContext | The setup context containing the mux where the AppService handler will be registered and potentially the base URL for unified mode. |
Returns
| Type | Description |
|---|---|
error | An error if the setup fails, otherwise nil. |