liteconfig

package
v0.0.0-...-46b830c Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

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

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
	DynamicPorts     bool
	Namespaces       []string
	SQLitePragmas    map[string]string
	Logger           log.Logger
	UpstreamOptions  []temporal.ServerOption

	SearchAttributes map[string]enums.IndexedValueType
	FrontendIP       string
	UIServer         UIServer
	// 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