Skip to main content

SetupInternal

Registers the data plane InternalAppService on the SetupContext mux. It must be called before Setup so the proxy can reach /internal/... on the same mux.

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

Registers the data plane InternalAppService on the SetupContext mux. This function must be called before Setup so that the proxy can reach /internal/... on the same mux.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, typically used for cancellation or timeouts.
sc*stdlibapp.SetupContextThe setup context which provides the mux where the InternalAppService will be registered.

Returns

TypeDescription
errorAn error if the setup fails, otherwise nil.