Skip to main content

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​

NameTypeDescription
ctxcontext.ContextThe context for the operation, used for tracing and cancellation.
sc*app.SetupContextThe application setup context, which provides access to the data store, base URL, Kubernetes configuration, and the HTTP multiplexer (Mux) for registering handlers.

Returns​

TypeDescription
errorAn error if any service registration or setup fails, otherwise nil.