runtime

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PingCmd added in v0.23.0

func PingCmd(cfg *config.Config) *cobra.Command

func RuntimeCmd

func RuntimeCmd(cfg *config.Config) *cobra.Command

RuntimeCmd represents the runtime command

func StartCmd

func StartCmd(cliCfg *config.Config) *cobra.Command

StartCmd starts a stand-alone runtime server. It only allows configuration using environment variables.

Types

type Config

type Config struct {
	HTTPPort            int                    `default:"8080" split_words:"true"`
	GRPCPort            int                    `default:"9090" split_words:"true"`
	LogLevel            zapcore.Level          `default:"info" split_words:"true"`
	MetricsExporter     observability.Exporter `default:"prometheus" split_words:"true"`
	TracesExporter      observability.Exporter `default:"" split_words:"true"`
	MetastoreDriver     string                 `default:"sqlite"`
	MetastoreURL        string                 `default:"file:rill?mode=memory&cache=shared" split_words:"true"`
	AllowedOrigins      []string               `default:"*" split_words:"true"`
	AuthEnable          bool                   `default:"false" split_words:"true"`
	AuthIssuerURL       string                 `default:"" split_words:"true"`
	AuthAudienceURL     string                 `default:"" split_words:"true"`
	SafeSourceRefresh   bool                   `default:"false" split_words:"true"`
	ConnectionCacheSize int                    `default:"100" split_words:"true"`
	QueryCacheSizeBytes int64                  `default:"104857600" split_words:"true"` // 100MB by default
	// AllowHostAccess controls whether instance can use host credentials and
	// local_file sources can access directory outside repo
	AllowHostAccess bool `default:"false" split_words:"true"`
	// Redis server address host:port
	RedisURL string `default:"" split_words:"true"`
}

Config describes runtime server config derived from environment variables. Env var keys must be prefixed with RILL_RUNTIME_ and are converted from snake_case to CamelCase. For example RILL_RUNTIME_HTTP_PORT is mapped to Config.HTTPPort.

Jump to

Keyboard shortcuts

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