Optional certExtra holds any dynamic data that could be passed between event handlers.
InstallerFunc is the "installer" function that is called after successful server tcp bind but only if there is no explicit superuser record created yet.
It runs in a separate goroutine and its default value is [apis.DefaultInstallerFunc].
It receives a system superuser record as argument that you can use to generate a short-lived auth token (e.g. systemSuperuser.NewStaticAuthToken(30 * time.Minute)) and concatenate it as query param for your installer page (if you are using the client-side SDKs, you can then load the token with pb.authStore.save(token) and perform any Web API request e.g. creating a new superuser).
Set it to nil if you want to skip the installer.
Listener allow specifying a custom network listener.
Leave it nil to use the default net.Listen("tcp", e.Server.Addr).
Optional routerOptional serverStartBannerFunc defines a custom console startup banner.
If not set, defaults to the system one that prints the current HTTP API and dashboard addresses.
Assign StartBannerFunc to a function with an empty body if you want to disable the console print entirely.
experimental
UIExtensions is a list with the superuser UI extensions.
Generated using TypeDoc
Next calls the next hook handler.