Documentation ¶
Index ¶
Constants ¶
View Source
const ( PathStatic = "static-files/" PathStaticExtern = PathStatic + "extern/" PathStaticExternPlayground = PathStaticExtern + "playground/" )
View Source
const ( ContextKeyConfig = ContextKey("config") ContextKeyRendererService = ContextKey("rendererService") ContextKeyAssetsProviderService = ContextKey("assetsProviderService") ContextKeyBundleProviderService = ContextKey("bundleProviderService") ContextKeyRequestId = ContextKey("requestId") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { LogLevelDebug bool `arg:"--logDebug,env:LOG_LEVEL_DEBUG" default:"false" help:"Debug log level active"` LogJsonOutput bool `arg:"--logJsonOutput,env:LOG_JSON_OUTPUT" default:"false" help:"Json log output"` RenderTimeoutInSeconds int `arg:"--renderTimeout env:RENDER_TIMEOUT" default:"30" help:"Render timeout in seconds"` WorkerInstances int `arg:"--workerInstances,env:WORKER_INSTANCES" default:"30"` Port int `arg:"env" default:"8000" help:"Server port"` GracefulShutdownTimeoutInSec int `arg:"--GracefulShutdownTimeout,env:GRACEFUL_SHUTDOWN_TIMEOUT" default:"10" help:"Graceful server shutdown timeout in seconds"` MaxBodySizeInMb int `arg:"--maxBodySize,env:MAX_BODY_SIZE" default:"32" help:"Max body size in megabyte"` ServePlayground bool `arg:"--servePlayground,env:SERVE_PLAYGROUND" default:"false" help:"Serve playground from path './static-files/playground/'"` Secret string `arg:"env" default:"" help:"Secret used as bearer token"` NoSandbox bool `arg:"--no-sandbox,env:NO_SANDBOX" default:"false" help:"Disable chromium sandbox"` PreloadedAssets []string `arg:"env" help:"Preload assets on startup. Example:'bar.js:https://foo.com/bar.js'"` //TODO:! LoopbackPort int `arg:"env" default:"8001" help:"Loopback-Server port"` }
type ContextKey ¶
type ContextKey string
Click to show internal directories.
Click to hide internal directories.