Documentation ¶
Index ¶
- Constants
- type App
- func (a *App) Close() error
- func (a *App) InitProject(exampleName string) error
- func (a *App) IsProjectInit() bool
- func (a *App) Reconcile(strict bool) error
- func (a *App) ReconcileSource(sourcePath string) error
- func (a *App) Serve(httpPort, grpcPort int, enableUI, openBrowser, readonly bool) error
- type LogFormat
Constants ¶
View Source
const ( LogFormatConsole = "console" LogFormatJSON = "json" )
Default log formats for logger
View Source
const ( DefaultInstanceID = "default" DefaultOLAPDriver = "duckdb" DefaultOLAPDSN = "stage.db" )
Default instance config on local.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Context context.Context Runtime *runtime.Runtime Instance *drivers.Instance Logger *zap.SugaredLogger BaseLogger *zap.Logger Version config.Version Verbose bool ProjectPath string // contains filtered or unexported fields }
App encapsulates the logic associated with configuring and running the UI and the runtime in a local environment. Here, a local environment means a non-authenticated, single-instance and single-project setup on localhost. App encapsulates logic shared between different CLI commands, like start, init, build and source.
func (*App) InitProject ¶
func (*App) IsProjectInit ¶
func (*App) ReconcileSource ¶
Click to show internal directories.
Click to hide internal directories.