liteconfig

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 14 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
	DynamicConfig dynamicconfig.StaticClient
	// contains filtered or unexported fields
}

func NewDefaultConfig

func NewDefaultConfig() (*Config, error)

type PortProvider

type PortProvider struct {
	// contains filtered or unexported fields
}

func NewPortProvider

func NewPortProvider() *PortProvider

func (*PortProvider) Close

func (p *PortProvider) Close() error

func (*PortProvider) GetFreePort

func (p *PortProvider) GetFreePort() (int, error)

GetFreePort asks the kernel for a free open port that is ready to use.

func (*PortProvider) MustGetFreePort

func (p *PortProvider) MustGetFreePort() int

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