Setup
Registers the DataProxy service handler on the SetupContext mux. Requires sc.DataStore to be set.
def Setup(
ctx: context.Context,
sc: *app.SetupContext
) - > error
Registers the DataProxy service handler on the SetupContext mux. This function requires sc.DataStore to be set to properly initialize and mount the necessary services.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the operation, used for tracing and cancellation. |
| sc | *app.SetupContext | The application setup context, which provides access to the data store, base URL, Kubernetes configuration, and the HTTP multiplexer (Mux) for registering service handlers. |
Returns
| Type | Description |
|---|---|
error | An error if any service registration or setup fails, otherwise nil. |