local

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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 NewApp

func NewApp(ctx context.Context, ver config.Version, verbose bool, olapDriver, olapDSN, projectPath string, logFormat LogFormat, variables []string) (*App, error)

func (*App) Close added in v0.18.0

func (a *App) Close() error

func (*App) InitProject

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

func (*App) IsProjectInit

func (a *App) IsProjectInit() bool

func (*App) Reconcile

func (a *App) Reconcile(strict bool) error

func (*App) ReconcileSource

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

func (*App) Serve

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

type LogFormat added in v0.19.0

type LogFormat string

func ParseLogFormat added in v0.19.0

func ParseLogFormat(format string) (LogFormat, bool)

Jump to

Keyboard shortcuts

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