local

package
v0.16.0-rc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultInstanceID = "default"

Default instance config on local

View Source
const DefaultOLAPDSN = "stage.db"
View Source
const DefaultOLAPDriver = "duckdb"

Variables

This section is empty.

Functions

func InstallID

func InstallID() (string, error)

Types

type App

type App struct {
	Runtime     *runtime.Runtime
	Instance    *drivers.Instance
	Logger      *zap.SugaredLogger
	BaseLogger  *zap.Logger
	Version     string
	Verbose     bool
	ProjectPath string
}

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 NewApp

func NewApp(version string, verbose bool, olapDriver string, olapDSN string, projectPath string) (*App, error)

func (*App) InitProject

func (a *App) InitProject(exampleName string) error

func (*App) IsDevelopment

func (a *App) IsDevelopment() bool

func (*App) IsProjectInit

func (a *App) IsProjectInit() bool

func (*App) Reconcile

func (a *App) Reconcile() error

func (*App) ReconcileSource

func (a *App) ReconcileSource(path string) error

func (*App) Serve

func (a *App) Serve(httpPort int, grpcPort int, enableUI bool, openBrowser bool) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL