liteconfig

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PersistenceStoreName = "sqlite-default"
	DefaultFrontendPort  = 7233
	DefaultMetricsPort   = 0
)

Variables

View Source
var SupportedPragmas = map[string]struct{}{
	"journal_mode": {},
	"synchronous":  {},
}

Functions

func Convert

func Convert(cfg *Config) *config.Config

func GetAllowedPragmas

func GetAllowedPragmas() []string

Types

type Config

type Config struct {
	Ephemeral        bool
	DatabaseFilePath string
	FrontendPort     int
	MetricsPort      int
	DynamicPorts     bool
	Namespaces       []string
	SQLitePragmas    map[string]string
	Logger           log.Logger
	UpstreamOptions  []temporal.ServerOption

	FrontendIP string
	UIServer   UIServer
	BaseConfig *config.Config
	// contains filtered or unexported fields
}

func NewDefaultConfig

func NewDefaultConfig() (*Config, error)

type UIServer

type UIServer interface {
	Start() error
	Stop()
}

UIServer abstracts the github.com/temporalio/ui-server project to make it an optional import for programs that need web UI support.

A working implementation of this interface is available here: https://pkg.go.dev/github.com/temporalio/ui-server/server#Server

Jump to

Keyboard shortcuts

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